Bug 143697 - Paragraph language picker contains entry {es}
Summary: Paragraph language picker contains entry {es}
Status: CLOSED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2021-08-02 21:16 UTC by Telesto
Modified: 2021-08-12 09:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (24.99 KB, application/vnd.oasis.opendocument.text)
2021-08-02 21:17 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-08-02 21:16:30 UTC
Description:
Paragraph language picker contains entry {es}

Steps to Reproduce:
1. Open the attached file
2. Status bar (bottom) (left) click 'Spanish'. Menu expands.

Actual Results:
Menu contains entry {es}

Expected Results:
Shouldn't be present


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2a151d1d5bc055d5e0011460b6ec42ea9f34f880
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and in
4.4.7.2

and in 
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

not in
4.1
Comment 1 Telesto 2021-08-02 21:17:45 UTC
Created attachment 174034 [details]
Example file

Source: attachment 156910 [details] (bug 129734). But this trimmed down & without font embedding enabled
Comment 2 Julien Nabet 2021-08-03 07:59:30 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.
Comment 3 Telesto 2021-08-10 19:00:20 UTC
@Eike
Not sure if you're interest this one too (inspired by bug 137742).
Comment 4 Eike Rathke 2021-08-11 12:41:43 UTC
There's nothing wrong with that. The document contains a default paragraph style with

      <style:text-properties style:use-window-font-color="true" style:font-name="Delius" fo:font-size="15pt" fo:language="es" fo:country="none" style:letter-kerning="false" style:font-name-asian="Delius1" style:font-size-asian="15pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="Delius1" style:font-size-complex="15pt" style:language-complex="hi" style:country-complex="IN" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2"/>

note  fo:language="es" fo:country="none"   so {es} occurring in the language list is *expected*. The style is listed in the Stylist as "Default Paragraph Style" but apparently not applied, see its properties the Language {es} is assigned.

However/whoever/whatever ((template) extension?) created that style, the generator of the document is an ancient

    <meta:generator>LibreOffice/4.3.0.4$Windows_x86 LibreOffice_project/62ad5818884a2fc2e5780dd45466868d41009ec0</meta:generator>
Comment 5 Ming Hua 2021-08-12 08:29:34 UTC
(In reply to Eike Rathke from comment #4)
> note  fo:language="es" fo:country="none"   so {es} occurring in the language
> list is *expected*.
How hard would it be to make LibreOffice display "Spanish (unspecified)" (or "... (unknown)" or something similar) for situations like this?  The ISO code with curly brackets looks really cryptic to an ordinary user.
Comment 6 Telesto 2021-08-12 09:30:21 UTC
(In reply to Eike Rathke from comment #4)
> However/whoever/whatever ((template) extension?) created that style, the
> generator of the document is an ancient
> 
>     <meta:generator>LibreOffice/4.3.0.4$Windows_x86
> LibreOffice_project/62ad5818884a2fc2e5780dd45466868d41009ec0</meta:generator>

I have no clue about how the document has been generated. That's might be a question which can be asked at bug 129734.

The 4.3.0.4 version being caused by me :-). I trimmed it down.. while tracing it back.

The source file is attachment 156910 [details] is generated by: 
<meta:generator>LibreOffice/6.2.8.2$Linux_X86_64 LibreOffice_project/20$Build-2</meta:generator><dc:date>2020-01-02T20:37:43.653533057</dc:date>