Bug 150582 - Words with smart quotes/apostrophes get added to custom dictionaries via Writer but not Draw
Summary: Words with smart quotes/apostrophes get added to custom dictionaries via Writ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dictionaries
  Show dependency treegraph
 
Reported: 2022-08-24 12:18 UTC by xordevoreaux
Modified: 2024-02-17 23:01 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xordevoreaux 2022-08-24 12:18:06 UTC
Description:
I typed BF's (short for possessive of boyfriend's) in LO draw in a text box, got offered the opportunity to add it to a dictionary, but it didn't take. Worked in Writer.  

Steps to Reproduce:
1. Launch LO Draw
2. Create a text box and type BF's in it
3. Observe it's not a recognized word
4. Attempt to add it to any dictionary, it fails
5. Launch LO Writer
6. Type BF's
7. Observe it's not a recognized word
8. Attempt to add it to dictionary, it works
9. Return to Draw. The word shows up without the red squiggly (finally added)

Actual Results:
Not added via Draw

Expected Results:
Words with apostrophes and smart quotes should be added under any context using any LO application using any widget/tool whose context menu offers Add To Dictionary


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

and

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4c96abd81460977d413d4d28e891bbbac5769ede
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 1 Tammy 2022-12-23 21:21:11 UTC
I was able to reproduce the issue in:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 780d55199e54fafc3784691d5cf716c1bb92b0aa
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 xordevoreaux 2023-05-16 01:05:25 UTC
Still a problem in 

Version: 7.6.0.0.alpha1 (X86_64) / LibreOffice Community
Build ID: 9366f83c88fc93d40ea0c0035508f24ad5dcb144
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 3 Tex2002ans 2024-02-17 23:01:13 UTC
Yep, looks like still an issue in:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

- - - - - - -

If you have these 2 lines of text in your document:

- BF's
- BF’s

1st = dumb quote / straight quote
   - U+0027 = APOSTROPHE
2nd = smart quote / curly quote
   - U+2019 = RIGHT SINGLE QUOTATION MARK

- - -

If you:

- Right-Click > Add to Dictionary

on the 2nd type...

This is what gets added:

- BF's
   - Writer
   - = U+0027
- BF’s
   - Draw
   - = U+2019

You can verify this by going into:

- Tools > Options
- Languages and Locales > Writing Aids
- Under "User-defined Dictionaries"
   - Highlighting "standard [All]"
   - Pressing the "Edit" button.

- - -

Like comment 0 says:

> Words with apostrophes and smart quotes should be added under any context using any LO application using any widget/tool whose context menu offers Add To Dictionary

I'd expect that too. Right now, it seems like 2 completely different codepaths for Draw vs. Writer.