Re: Not sure how to make Libreoffice support non-English documents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30.11.2021 6.02, Jun 711 wrote:
On Fri, Nov 26, 2021 at 10:35 PM Ilmari Lauhakangas <ilmari.lauhakangas@xxxxxxxxxxxxxxx <mailto:ilmari.lauhakangas@xxxxxxxxxxxxxxx>> wrote:

    On 27.11.2021 3.21, Jun 711 wrote:
     > Hi,
     >
     > I followed the steps written in this repo to try to compile a
    compact
     > version of libreoffice that can convert non-English documents to
    PDFs.
     >
    https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile
    <https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile>

     >
    <https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile
    <https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile>>
     >
     > The compiled Libreoffice provided by Vlad Holubiev through the repo
     > works for English documents but not for non-English documents. I
    posted
     > a question on the repo but haven't got any response.
     > https://github.com/vladgolubev/serverless-libreoffice/issues/39
    <https://github.com/vladgolubev/serverless-libreoffice/issues/39>
     > <https://github.com/vladgolubev/serverless-libreoffice/issues/39
    <https://github.com/vladgolubev/serverless-libreoffice/issues/39>>
     >
     > I am not sure what flags to change. I found autogen.sh flags that he
     > posted but none of them seems to be for supporting non-English
     > languages.
     >
    https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt
    <https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt>

     >
    <https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt
    <https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt>>
     >
     > I have also tried to change the default font to Noto Sans
    following the
     > step mentioned in the libreoffice thread as it seems to be able to
     > support all languages but that didn't help.
     >
    https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545
    <https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545>

     >
    <https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545
    <https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545>>
     >
     > I wonder if anyone can give me a pointer on what I can try next?

    Looks like this is the culprit:
    https://github.com/vladgolubev/serverless-libreoffice/blob/7927017e96531b042b70f0de24be40fd88b44b63/Dockerfile#L110
    <https://github.com/vladgolubev/serverless-libreoffice/blob/7927017e96531b042b70f0de24be40fd88b44b63/Dockerfile#L110>

    --without-fonts         LibreOffice includes some third-party fonts to
    provide a reliable basis for help content, templates, samples, etc.
    When
    these fonts are already known to be available on the system then you
    should use this option.

    Obviously done to save disk space.

    So drop that option from the Dockerfile.

    Ilmari

> Thank you. We gave that a try and it solved font issue as in previously,
> all the converted text had the same font.
> However, it still doesn't work for these languages: Chinese, Japanese,
> Korean and Punjabi out of the 8 languages that we tested.
> This is what we had in our test.docx. The converted pdf doesn't contain
> the font of Chinese, Japanese, Korean and Punjabi. It seems fine for the
> other 4 languages.
>
> ```
> Chinese: 这是一个测试
> Japanese: これはテストです
> Korean : 이것은 시험이다
> Arabic: هذا اختبار
> Russian: это проверка
> Hebrew: זה מבחן
> Greek: αυτό είναι ένα τεστ
> Punjabi: ਇਹ ਇੱਕ ਟੈਸਟ ਹੈ
> ```
>
> Is there anything we can modify in `share/registry/main.xcd` file like
> what this user wrote in this thread:
> https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545 > <https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545>
> ?
>

This discussion is out of scope for the dev list. Please continue it in the serverless-libreoffice issue tracker or Ask LibreOffice site.

Ilmari



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux