Search found 291 matches

by jgkoehn
Thu Oct 19, 2023 12:57 am
Forum: Support
Topic: Speeding up
Replies: 5
Views: 23844

Re: Speeding up

I see that I needed to do a few things differently function TConvertBook.GetTextFromNosOffs(rve: TRichViewEdit; startNo, startOffs, endNo, endOffs:Integer; CharsPerLineBreak: Integer = 2): String; var ItemNo, OldItemNo, hsNo, hsOffs, heNo, heOffs : Integer; LineBreak, NewLine, AddText: String; begin...
by jgkoehn
Wed Oct 18, 2023 10:39 pm
Forum: Support
Topic: Speeding up
Replies: 5
Views: 23844

Re: Speeding up

I tried but I am having trouble with the startOffs, and endOffs: Are these AnsiString? UTF-16, UTF8 ? Character count? function TConvertBook.GetTextFromNosOffs(rve: TRichViewEdit; startNo, startOffs, endNo, endOffs:Integer; CharsPerLineBreak: Integer = 2): String; var ItemNo, OldItemNo: Integer; Lin...
by jgkoehn
Wed Oct 18, 2023 9:02 pm
Forum: Support
Topic: Speeding up
Replies: 5
Views: 23844

Re: Speeding up

This is the code used to get the Text at present. WStrText := trim(RichViewEdit.GetSelTextW); (I wish I could assume it is in the same text item but quite often it will not be) I can see how going down through text items. To convert all text items to a string and then run down through the string pro...
by jgkoehn
Tue Oct 17, 2023 8:19 pm
Forum: Support
Topic: Speeding up
Replies: 5
Views: 23844

Speeding up

I use this function many many times in building resources. Basically it runs down through TRichViewEdit looking for markers like <:> and </:>, <link> and </link> etc then information is pulled out and brought into another TRichViewEdit. Ideas on how to speed this up since it is very core to the whol...
by jgkoehn
Wed Oct 11, 2023 4:13 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

Since this will take work to implement how can one take list markers back out of GetSelText without modifying TRichView code?
by jgkoehn
Sun Oct 08, 2023 8:07 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

That makes sense. How can it temporarily be fixed since this at present with now including the listmarkers breaks a lot of code? "I can implement my work around" but it doesn't really solve it if it just gets overwritten. Plus the listmarker is not really part of the selected text but outs...
by jgkoehn
Sun Oct 08, 2023 3:24 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

I think that would be a good solution.
I agree if somehow the list marker could be select so as to change its color that would be beneficial. While also allowing to keep the text seperate.
by jgkoehn
Sat Oct 07, 2023 11:58 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

I could see the benefit of having it included in the text but also only if it is actually selected. Right now it seems to be starting at the list item even if the select starts later in the line.
by jgkoehn
Fri Oct 06, 2023 9:31 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

To help solve this would it be possible to make it so List Items could be selectable?
That way if they were not selected they would not be included.
by jgkoehn
Fri Oct 06, 2023 9:19 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

I went in and added: IncludeListItemsAsText This may not be the best but works for now. if SelectionOnly AND IncludeListItemsAsText then begin MarkerItemNo := GetFirstParaSectionItem(StartItemNo); if (GetItemStyle(MarkerItemNo) = rvsListMarker) then begin s := GetNonTextStr(MarkerItemNo, 0, 1, Custo...
by jgkoehn
Fri Oct 06, 2023 8:52 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

Or if the above is not possible/preferrable please help me find a workable solution that I can use and not have bullets included unless they are specifically selected. I understand if I was searching for <slf> in <slf> bullet text </slf> but when it is bullet <slf> and still gets the bullet it does ...
by jgkoehn
Fri Oct 06, 2023 8:43 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

Please restore original functionality and allow users to add bullets if they so desire by something such as.
GetSelTextW(TextOnly: Boolean = True);
Since bullets are not technically text.
by jgkoehn
Fri Oct 06, 2023 8:39 pm
Forum: Support
Topic: Plain Text Bullets on Copy
Replies: 21
Views: 323197

Re: Plain Text Bullets on Copy

Unfortunately since "bullets" are included but not selected this causes many problems and produces unexpected results For example If one searches for <slf> in the following. <slf>text</slf> It now includes the bullet with the <slf> even though the bullet is not inside of <slf> and should n...
by jgkoehn
Wed Mar 15, 2023 1:08 pm
Forum: Support
Topic: HTML import and RTL
Replies: 5
Views: 2888

Re: HTML import and RTL

Thanks for the information!
by jgkoehn
Tue Mar 14, 2023 8:03 pm
Forum: Support
Topic: HTML import and RTL
Replies: 5
Views: 2888

Re: HTML import and RTL

So in the next update it would come in as reversed then? Also would it work on Hebrew? This is more complex due to vowel points as you know.

Perhaps a better question what would it look like once the update happens?