Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Aug 2014, 21:08
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Mix ascii and utf-8 in one text file
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Tue 25 Feb 2014, 20:50    Post subject:  Mix ascii and utf-8 in one text file  

I have written an example to show how easy it is
to add some utf-8 text to some ascii text and produce a file.

UTF-8 allows more diverse characters so it is good for math formulas.
ascii text is good for gettext translation. So a mixture of
the two types is useful. The ascii text is part of the script whereas
the utf-8 text is a separate file stored in /root/.config/Mix_text/ .

I wrote the script so that the utf-8 text could be added to the beginning
or end of a line of ascii text.

I put the script in a pet file to make it easy to install.
Launch it from the Start menu

Start Menu > Utility > Mix text

The combined text file is shown. (see image). This file is stored in
/tmp/Mix_text/combined.




.
Mix_text-1.0.pet
Description  experiment app
pet

 Download 
Filename  Mix_text-1.0.pet 
Filesize  1.89 KB 
Downloaded  63 Time(s) 
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Sat 01 Mar 2014, 14:47    Post subject:  

A practical example of this technique---->

Puppy Units 1.2 has math reference windows .
They are a mixture of ascii and utf-8 characters.

I found that there is a slow down as the combine text file is created
however it's only a second or so.

http://murga-linux.com/puppy/viewtopic.php?t=92152
______________________________________
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0430s ][ Queries: 12 (0.0042s) ][ GZIP on ]