Hello everyone,

Thank you both for your elaborate comments!
I tried saving my .rst file as utf-8 as Guilberto suggested and this 
resulted in
the characters displaying appropriately in the html file (though oddly a 
bit bigger
than the corresponding latin characters).

Indeed, Sphinx's i18n feature is *ideal* for what I'm trying to do for Sage.
I closely followed the steps found on the first link that Takayuki provided,
while the slides found on the second one helped me better understand this
feature. My first attempt was to test how it works for Italian and all 
worked perfectly.
After this I repeated the process for Greek (making changes wherever 
needed),
but the problem seems to arise when I try to create my .mo files by issuing 
sphinx-intl 
build.
To be more precise, the output I get is:

Build: source\locale/gr\LC_MESSAGES\Tour.mo
Traceback (most recent call last):
  File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\sphinx-intl.exe\__main__.py", line 9, in 
<module>
  File "c:\python34\lib\site-packages\click\core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "c:\python34\lib\site-packages\click\core.py", line 696, in main
    rv = self.invoke(ctx)
  File "c:\python34\lib\site-packages\click\core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\python34\lib\site-packages\click\core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\python34\lib\site-packages\click\core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "c:\python34\lib\site-packages\sphinx-intl\commands.py", line 247, in 
build
    basic.build(locale_dir, output_dir, languages)
  File "c:\python34\lib\site-packages\sphinx-intl\basic.py", line 101, in 
build
    cat = c.load_po(po_file)
  File "c:\python34\lib\site-packages\sphinx-intl\catalog.py", line 17, in 
load_po
    cat = pofile.read_po(f)
  File "c:\python34\lib\site-packages\babel\messages\pofile.py", line 208, 
in read_po
    line = line.decode(catalog.charset)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 8: 
invalid continuation byte

No .mo file is generated.
For your convenience, I'm attaching the folder containing the files that I 
used.

Many thanks again!

Kind regards, Dimitris

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Attachment: Tour.rar
Description: application/rar

Reply via email to