Bug 150370

Summary: Accept art-x-... and art-Latn-x-... artificial language private-use tags in character attribution's Font Language edit field
Product: LibreOffice Reporter: Eike Rathke <erack>
Component: frameworkAssignee: Eike Rathke <erack>
Status: VERIFIED FIXED    
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=150371
https://bugs.documentfoundation.org/show_bug.cgi?id=160249
Whiteboard: target:7.5.0 inReleaseNotes:7.5
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108734, 119352    

Description Eike Rathke 2022-08-11 09:38:38 UTC
The character attribution's Font Language edit field accepts valid BCP 47 language tags to be added, except x-... private-use tags, on purpose to prevent spreading misassignments. It should allow adding language tags for artificial constructed languages though with tags art-x-... and art-Latn-x-... (with Latn being any valid script code) so these could be used without the kludge of having to create and edit the stored source of a document (see https://ask.libreoffice.org/t/how-to-create-an-exportable-keyboard-input-scheme/80482/4 )

See also
https://en.wikipedia.org/wiki/Codes_for_constructed_languages
https://www.kreativekorp.com/clcr/
Comment 1 Commit Notification 2022-08-31 18:50:28 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2c2e0568e89942cc8463c0da9aa7a3d177667178

Related: tdf#150370 Convert isValidBcp47() bool to enum LanguageTag::PrivateUse

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2022-09-01 09:31:17 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/24d382a18ec2ade0d9e9b9c6e6c3e86bed6cde14

Resolves: tdf#150370 Accept 'art-x-...' private-use input in language box

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Stéphane Guillou (stragu) 2022-12-12 13:29:04 UTC
Fix verified:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 01c9c971e43782800ebf63acc763a7e7fba096c1
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded