View Single Post
Old 12-22-2012, 02:52 AM   #175
xuyn2003
Connoisseur
xuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texanxuyn2003 might easily be mistaken for a Texan
 
Posts: 71
Karma: 18140
Join Date: Jul 2011
Device: PRS-T1&KOBOTOUCH
Hi AlPe,
Thank you for the python script. I tranformed the dictionary sucessfully.

But have a little problem. The newline character in stardict will not show in the kobo dict.

For example, the right format should be:
Quote:
face
/feɪs; fes/ n
1 front part of the head from the forehead to the chin
*a pretty, handsome, etc face
* Go and wash your face.
* He was so ashamed that he hid his face in his hands.
2 expression shown on a face
*a sad face
* smiling faces
* She had a face like thunder, ie She looked very angry.
But current format is as below:
Quote:
face
/feɪs; fes/ n 1 front part of the head from the forehead to the chin *a pretty, handsome, etc face * Go and wash your face.. * He was so ashamed that he hid his face in his hands. * I saw many familiar/strange faces, ie people whom I recognized/did not recognize. 2 expression shown on a face *a sad face * smiling faces * She had a face like thunder, ie She looked very angry.
Can you add some code to the script to replace the new line character with <br/>?
xuyn2003 is offline   Reply With Quote