Ask Your Question

BenM's profile - activity

2015-07-22 03:33:08 +0100 commented answer Metadata I write in ODT and export to PDF isn't recognized in e-readers

PDF doesn't use XML to define its metadata and, now that it's an ISO standard, a change of that magnitude will not take place.

2015-05-20 09:53:35 +0100 commented answer Draw export to PDF / SVG text errors

There's at least one known bug with exporting to PDF in 4.4 on any version of OS X, see bug #88941. That bug does not affect 4.3, though.

2015-05-20 09:34:49 +0100 answered a question Using extended character sets (UTF-8 and Thai)

Set the Thai to use either Tahoma, which works here, or Arial Unicode MS. The latter is a Microsoft TrueType font with a very large array of glyphs to handle a great many languages. This is why it's usually set for the asian languages, because it does cover them (basically for anywhere Microsoft tries to sell their stuff ... so that's the entire planet). The only other font I've seen with a larger glyph set than Arial Unicode MS is the shareware Code2000 font, but though it is similar to Time [New Roman], it isn't the most aesthetically pleasing font. It does, however, support overlay characters, which is pretty rare.

2015-05-20 09:25:35 +0100 commented answer Thai Language is invisible in Office

In theory modern operating systems should, if the charset is set correctly (e.g. to UTF-8), provide glyph replacement. So even though the Thai alphabet is not present in Times New Roman or Inconsalata, I can still print "Thank ขอบคุณ" in both LibreOffice and Emacs. You need both the character encoding and the fonts with glyph support. In Emacs the Thai characters were produced with the Thornburi font and in LibreOffice Tahoma was used.

2015-05-16 11:29:16 +0100 commented question LibreOffice Windows Portable: Wrong traditional Chinese characters shown when opening PDF file

Which character encoding is set for the OS and doe the settings for LibreOffice match that? Also, was the PDF created with the same character encoding set? If the answers to any of this are "no" then chances are it'll be a conflict between character encodings from different sources. As for the fonts, Times New Roman is the cheap knock-off of Times anyway and it might simply be embedded in the PDF.

2015-05-16 07:54:31 +0100 commented question Version Crashes on OSX 10.7.5

Should definitely be a bug where more appropriate troubleshooting can be done, beginning with checking why a 32-bit version was required with Lion instead of 64-bit ...

2015-05-16 03:16:47 +0100 answered a question How can I use python requests or other 3rd party packages in general?

If you have a copy of the same major and minor version of Python installed on your system (Python 3.3.x for LO 4.3 and 4.4 current releases) then you essentially have two possible solutions to reach the same goal. If, however, you do not have the same Python branch installed then only one option is reliably available to you.

That solution is to install pip (and setuptools) within the LibreOffice installation and then use the pip program (script) to install anything else. Likewise, calling the full path to the LO version of Python when installing with a file will do much the same thing.

The alternative method, if you have a regular installation of Python 3.3 or are willing to try it with 3.4 (which might be bad and might break other things, so be careful) then all you need to do is make sure that the LibreOffice Python can access the site-packages directories which exist elsewhere on the system.

Run this script with the system version of Python 3.3:

import sys

afile = open("sites.pth", "w")
for s in sys.path:

Then copy or move the sites.pth file it creates to a LibreOffice directory which should include something like this: LibreOfficePython.framework/Versions/3.3/lib/python3.3/site-packages/

Note: I'm checking an OS X system here, so there will be path differences, but basically you want to find the site-packages directory for the LO installation and copy the sites.pth file there. That file will be checked by Python for additional locations to check for modules and thus will find the modules installed for your regular Python installation, including requests if it's there.

Oh, by the way, on an unrelated note, there are better options than ctypes, depending on what you're doing. Take a look at Cython and CFFI, more likely CFFI.

2015-05-16 02:33:27 +0100 answered a question Thai Language is invisible in Office

Characters not appearing in any program are generally the result of two things:

1) The character set and/or language settings.

2) The fonts available to the program.

In the first case you want the character set configured to be UTF-8 and ideally you want that set for every program which represents text in any way, whether you can edit it or not. Depending on your operating system this may already be the default setting. If you use a POSIX based system this can also be set using the locale command.

In the second case, the fonts which include support for Thai characters (e.g. Arial Unicode MS or Code2000) to be accessible by LibreOffice. The means of ensuring this varies according to each operating system.

2015-05-16 02:22:37 +0100 commented question Writer adding span style font size to every paragraph

Apparrently this happens with every XML based word processor, the same thing occurs woth and the only reliable fix is find & replace in an editor or using sed and regular expressions.