[www.theword.net]

Twitter live feed  
View unanswered posts | View active topics It is currently Tue Aug 03, 2021 1:50 am



Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
 Find and replace link names 
Author Message
User avatar

Joined: Mon Dec 26, 2011 2:06 pm
Posts: 521
Post Find and replace link names
If I manually add new text to a link and then delete the old text, the link is maintained, but not with "Find and replace", the link is deleted even though the text color says the link is still present. Can this be find and replace be modified to maintain the link since I have 1600 links that I would like to change the names of?

_________________
Take My yoke upon you and learn from Me, for I am gentle and lowly in heart, and you will find rest for your souls.
“For My yoke [is] easy and My burden is light.”


Fri Aug 16, 2019 8:19 pm
Profile

Joined: Tue Nov 03, 2009 5:49 pm
Posts: 229
Post Re: Find and replace link names
+1


Sun Aug 18, 2019 2:35 am
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4214
Post Re: Find and replace link names
rdwray wrote:
If I manually add new text to a link and then delete the old text, the link is maintained, but not with "Find and replace", the link is deleted even though the text color says the link is still present. Can this be find and replace be modified to maintain the link since I have 1600 links that I would like to change the names of?



This looks like bug.

For your 1600 links you need to change, your best option is to try to fix a copy, with SQLite RegExer. Need to convert the topics to rtf format first. Last you would need to delete the existing word and search indexes.

_________________
Jon
the
Word 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sun Aug 18, 2019 10:19 am
Profile
User avatar

Joined: Mon Dec 26, 2011 2:06 pm
Posts: 521
Post Re: Find and replace link names
I was finally able to convert VN to NKJV in the database but there is still a problem. If I search for NKJV, it returns the 17 that I have previously entered. If I do a search for VN, it return 1615 that no longer exist in the database so TW is saving something somewhere - where is it?????

_________________
Take My yoke upon you and learn from Me, for I am gentle and lowly in heart, and you will find rest for your souls.
“For My yoke [is] easy and My burden is light.”


Sat Oct 05, 2019 2:17 pm
Profile
User avatar

Joined: Mon Dec 26, 2011 2:06 pm
Posts: 521
Post Re: Find and replace link names
I found that the data is contained in "content_search" and it is not converted to .rtf like the "content" is so I cannot replace the search variables. It would be nice if the entire database was converted to .rtf.

_________________
Take My yoke upon you and learn from Me, for I am gentle and lowly in heart, and you will find rest for your souls.
“For My yoke [is] easy and My burden is light.”


Sat Oct 05, 2019 3:18 pm
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4214
Post Re: Find and replace link names
Load your file into a SQLite program and delete the tables content_search and topic_wordindex.
OR
This can be done from within theWord from the module properties page, Settings and Actions tab -> Actions section -> Prepare module for distribution... Execute selected action.

Always make a backup copy
Always remember when modifying a module outside theWord that first it is not compressed in the content or topic.
Always convert to rtf in the properties window.
Always delete the tables, content_search and topic_wordindex. These will be remade when starting theWord

_________________
Jon
the
Word 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sat Oct 05, 2019 4:19 pm
Profile
User avatar

Joined: Mon Dec 26, 2011 2:06 pm
Posts: 521
Post Re: Find and replace link names
Table topic_wordindex does not exist, see screenshot.

Tried deleting content_search with SQLite and when I tried to do a search, I got a database error.

Tried using "Prepare module for distribution" and got the same search results as before.


Attachments:
Capture.PNG
Capture.PNG [ 48.42 KiB | Viewed 1762 times ]

_________________
Take My yoke upon you and learn from Me, for I am gentle and lowly in heart, and you will find rest for your souls.
“For My yoke [is] easy and My burden is light.”
Sat Oct 05, 2019 5:12 pm
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4214
Post Re: Find and replace link names
Can you give me a link to your module and I will look at it. If you upload to OneDrive or Dropbox and then send me the link in a private message. Is that ok

_________________
Jon
the
Word 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sat Oct 05, 2019 5:29 pm
Profile
User avatar

Joined: Mon Dec 26, 2011 2:06 pm
Posts: 521
Post Re: Find and replace link names
If I use "Prepare module for distribution" without converting to .rtf so I can make changes, it re-indexs, but after converting to .rtf, it will not re-index and it pops up a dialog asking if I want to continue search, if I select yes, it will work for a little bit and then TW locks up. Is there anyway to convert the module back to "blob" after converting to .rtf?

EDIT: After the lockup, it releases and I do not get any search results no matter how many time I try.

_________________
Take My yoke upon you and learn from Me, for I am gentle and lowly in heart, and you will find rest for your souls.
“For My yoke [is] easy and My burden is light.”


Sat Oct 05, 2019 5:53 pm
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4214
Post Re: Find and replace link names
I really need the module

_________________
Jon
the
Word 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sat Oct 05, 2019 5:58 pm
Profile
User avatar

Joined: Mon Dec 26, 2011 2:06 pm
Posts: 521
Post Re: Find and replace link names
I had to create an account and find out how to get the address, hope this is it: https://www.dropbox.com/preview/NKJV.cmt.twm?role=personal

_________________
Take My yoke upon you and learn from Me, for I am gentle and lowly in heart, and you will find rest for your souls.
“For My yoke [is] easy and My burden is light.”


Sat Oct 05, 2019 6:17 pm
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4214
Post Re: Find and replace link names
Sorry to have caused such trouble. I tried the link and it says the folder does not exist. Might be something wrong my end, not sure.

_________________
Jon
the
Word 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sat Oct 05, 2019 6:24 pm
Profile
User avatar

Joined: Mon Dec 26, 2011 2:06 pm
Posts: 521
Post Re: Find and replace link names
Yea, I don't know anything about dropbox: Just removed this so it is only me that has access

_________________
Take My yoke upon you and learn from Me, for I am gentle and lowly in heart, and you will find rest for your souls.
“For My yoke [is] easy and My burden is light.”


Sat Oct 05, 2019 6:40 pm
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4214
Post Re: Find and replace link names
That is better. I removed the link so your file is not accessed by others

_________________
Jon
the
Word 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sat Oct 05, 2019 6:45 pm
Profile
User avatar

Joined: Wed Jun 04, 2008 7:34 pm
Posts: 4214
Post Re: Find and replace link names
I hope this is what you wanted. I have sent you a PM with a link to download. I have put it in .zip

_________________
Jon
the
Word 5 Bible Software
OS for testing; Windows 10
Beta Download ------Beta Setup Guide------On-line Manual------Tech doc's and Utilities------Copyright Factsheet


Sat Oct 05, 2019 7:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 1.698s | 14 Queries | GZIP : Off ]