method

From twext

Jump to: navigation, search
TwEXTER TAKES A TEXT from a language, 
like this one from the Spanish:

"Cada trozo nuevo se pone debajo del trozo 
de antes.  Una frase nueva empieza despues 
de una linea vacia.

"Un paragrafo nuevo comienza despues de dos 
lineas vacias."

     A. CHUNKS IT     B. TRANSLATES CHUNKS 

     Cada trozo nuevo | each new chunk
    se pone debajo de | is put beneath
    l trozo de antes. | the chunk of before
-                     |                      + 1 blank line
      Una frase nueva | a new sentence
              empieza | begins
           despues de | after
     una linea vacia. | one empty line
-                     |
-                     |                      + 2 blank lines
   Un paragrafo nuevo | a new paragraph
    empieza debajo de | begins beneath
   dos lineas vacias. | two empty lines
                     
C. SAVES:
in flat text file like dtd'd twexml, json or maybe dodo
in database like mysql
in twext folders ie /ESPANOL/*.txt  /ESPANOL/english/*.txt</B>

D. FORMATS saved text as twext:


C A D A   T R O Z O   N U E V O   S E   P O N E
        each new chunk          -         is pu

D E B A J O   D E L   T R O Z O   D E   A N T E S.
t beneath        -      the chunk before

U N A   F R A S E   N U E V A   E M P I E Z A   D E -
   a sentence     -    new    -     begins        a

S P U E S   D E   U N A   L I N E A   V A C I A .

fter            -        one empty line



U N   P A R A G R A F O   N U E V O   E M P I E Z A
         a new paragraph            -        begins

D E B A J O   D E   D O S   L I N E A S   V A C I A S
beneath           -          two emtpy lines


variable formats possible depending on source chunks   
* see sample formats
* step C enables multilingual twextage.. we need simple ways to find
  chunk text/twxt translation sources.. when easy to find, twexter can
  then format twext

now we focus simply to make twext work with lyrics.. when ready, we do line breaks so regular text gets twext..

Retrieved from "http://twext.com/method"
Personal tools