Am 09.05.2011 18:25, schrieb Stephan Witt:

The LyX format is:
1 file per language as of - FileName dictfile = 
FileName(addName(package().user_support().absFileName(),"pwl_" + lang.lang() + 
".dict"))
  at my machine that's e. g. "/Users/stephan/Library/Application 
Support/LyX-2.0/pwl_english.dict"
1 header line with the fixed string "# personal word list"
n lines per word (char set is utf-8)

The conversion from CP-1252 to utf8 can be be a problem.

So the task would have the following sub-tasks:
1. iterate the personal word lists the user has (for all languages)
2. detect the appropriate char set
3. look up the LyX language name from lib/languages
  LangCode =>  Language, e. g. LangCode=pt_BR =>  Language brazilian
4. create the word list file with the fixed header line and copy the contents 
with char set conversion

Thanks. I'll see what I can do.
However, we only need to do this once. So maybe it is better to explain this on a WIKI-page and add this info to the LyX 2.0 release notes.
Pavel, what do you think?

regards Uwe

Reply via email to