https://bugs.documentfoundation.org/show_bug.cgi?id=158454
Bug ID: 158454
Summary: Add Thai Autocorrect Support
Product: LibreOffice
Version: 24.2.0.0 alpha1+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 191134
--> https://bugs.documentfoundation.org/attachment.cgi?id=191134&action=edit
Patch to add Thai Autocorrect data
I would like to add Autocorrect data for Thai in which common misspelled words
are corrected.
As Thai script has no word delimiter, the matching patterns will be with both
left and right wildcards so that words are matched at any position in a text
chunk and fixed. For example, ".*กงศุล.*" -> "กงสุล" will fix a text chunk
"สถานกงศุลใหญ่" to "สถานกงสุลใหญ่".
This, however, may require additional adjustment to the current matching
behavior to make it more complete. The current implementation stops immediately
when the first pattern is matched. This means only one replacement will take
place even though there can be more than one typos in the text chunk.
For example, suppose there are only 2 rules in the Autocorrect rule set:
- ".*กงศุล.*" -> "กงสุล"
- ".*อนุญาติ.*" -> "อนุญาต"
and the input text chunk is composed of 2 typos:
"ขออนุญาติจากสถานกงศุลใหญ่".
Assuming that the rules are matched in order, only the first rule will be
matched in current implementation, and the text chunk becomes:
"ขออนุญาติจากสถานกงสุลใหญ่"
although the desired result is:
"ขออนุญาตจากสถานกงสุลใหญ่"
where both typos are fixed.
So, I'm proposing 2 patches, one for the data, and the other for the code.
--
You are receiving this mail because:
You are the assignee for the bug.