View Single Post
Old 11-24-2012, 01:39 PM   #104
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 1,257
Karma: 332560
Join Date: Jun 2012
Device: kobo touch
Congratulations! Your dicitonary file looks good. Does your sample dictionary already work?
You will see that the whole definition is in one block without any formatting and difficult to read. I thought it might be nice to add a minimal formatting. One easy way would be by replacing all LF by <b/>. In the replace box of notepad++ select "Search mode: extended." You can search LF by "\n".

Code:
Find what: \n
Replace with: <b/>
This will give you, for instance

Quote:
Synonymes :<b/> - aveuli<b/> - mou<b/> - ramolli<b/> - se relācher<b/>
But it will give you also </w><b/>. This however we do not want, therefore we replace </w><b/> by </w>.

The drawback of this formatting is that it uses a lot of space on the screen, and you will probably have to go through several pages in order to read the definition of an entry. Therefore, it maybe better to replace the LF by something else that gives you a hint about the the structure of the information, maybe "||" or any good visible symbol.

Another thing: When producing the index file choose for encoding "encode in UTF-8 without BOM". If you choose "encode in UTF-8" the first line will not be taken into account by the dictionary engine.

Last edited by tshering; 11-24-2012 at 01:41 PM.
tshering is offline   Reply With Quote