Issue 127810 - Macro does not replace randomy - probably fomating bold related
Summary: Macro does not replace randomy - probably fomating bold related
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: 4.1.5
Hardware: PC Windows 7
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-09 04:42 UTC by bubikolramios
Modified: 2024-02-13 20:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
odt, ods (60.93 KB, application/x-zip-compressed)
2018-07-09 04:42 UTC, bubikolramios
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bubikolramios 2018-07-09 04:42:38 UTC
Created attachment 86446 [details]
odt, ods

This is not easily repeatable.

That is, I can create new odt (which uses same ods), paste same text as in attached odt, into it and macro will work.

The problem is, I have a much bigger text and tons of stuff are not replaced.
Randomly as it appears, forinstance 'fehlend' is sometimes replaced, sometimes not.

Doh attached files, as they are, repeats error as described.

How to repeat:

1.Open attached odt,enable macros,note word 'fehlend' is twice in that text
2.rum macro
3.only first occurance of 'fehlend' gets replaced, should replace both ocurances.

Basic logic of macro: find word - that is not bold, replace with another word-make that word bold to avoid repeated replace. List of word pairs in ods.

Something similar, but I think not the same:
https://bz.apache.org/ooo/show_bug.cgi?id=65268
Comment 1 oooforum (fr) 2024-02-02 10:16:53 UTC
You can find a solution in https://forum.openoffice.org/en/forum/viewtopic.php?t=94191