Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2015, 03:00 PM   #1
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 1,675
Karma: 23297497
Join Date: Mar 2015
Location: Israel
Device: kobo glo
Edit Dictionary In Text File

I did some changes to my dictionary as txt file with Notepad++.

from
Code:
register|registered|registers|registering	<font color="#007000">verb</font><br>\n[reg·is·ter || 'redʒɪstə(r)]<br>\nלרשום
register|registers	[reg·is·ter || 'redʒɪstə(r)]<br>\nרשימה; פנקס; משלב; וסת; מונה; סגנון; (במחשבים) אוגר, אזור אחסון קטן וזמני בתוך המעבד הראשי
to
Code:
register|registered|registers|registering	<font color="#007000">verb</font>-[reg·is·ter || 'redʒɪstə(r)]: לרשום
register|registers	[reg·is·ter || 'redʒɪstə(r)]: רשימה; פנקס; משלב; וסת; מונה; סגנון; (במחשבים) אוגר, אזור אחסון קטן וזמני בתוך המעבד הראשי

I want to do delete text "[...]" from the text file, but didn't find a way with Notepad++.

Is there another software more user friendly that can do the changes without writing a cod, text editor ?
Maybe i can use Visual Studio C++, but i forget how, and it take me a lot of time to learn it again .

I appreciate any help or advice.
Attached Thumbnails
Click image for larger version

Name:	dic2.PNG
Views:	173
Size:	122.6 KB
ID:	143821  
oren64 is offline   Reply With Quote
Old 11-16-2015, 03:42 PM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 77,905
Karma: 68013566
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Air 2, iPhone 6
You mean you want to delete everything between square brackets? Very easy with a regular expression, which I believe Notepad++ supports?

Search for:

Code:
\[\c*\]
And replace it with an empty string. I'm petty sure that'll do the trick.

Last edited by HarryT; 11-16-2015 at 04:15 PM.
HarryT is offline   Reply With Quote
Old 11-16-2015, 03:58 PM   #3
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 1,675
Karma: 23297497
Join Date: Mar 2015
Location: Israel
Device: kobo glo
Quote:
Originally Posted by HarryT View Post
You mean you want to delete everything between square brackets?
Include the the brackets.

Quote:
Very easy with a regular expression, which I believe Notepad++ supports?
I want to delete all the brackets in the file (163431 words), i don't want to delete it manually.
I Can only mark "[" or "]" with Notepad++.
oren64 is offline   Reply With Quote
Old 11-16-2015, 04:09 PM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 77,905
Karma: 68013566
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Air 2, iPhone 6
Did you try the search and replace operation I suggested? It really should work.

Last edited by HarryT; 11-16-2015 at 04:16 PM.
HarryT is offline   Reply With Quote
Old 11-16-2015, 04:16 PM   #5
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 1,675
Karma: 23297497
Join Date: Mar 2015
Location: Israel
Device: kobo glo
Quote:
Originally Posted by HarryT View Post
Does Notepad++ support regular expressions in "search and replace" operations?
Yes, i try "\[*\]" bat it mark only "]".
Attached Thumbnails
Click image for larger version

Name:	13.PNG
Views:	72
Size:	74.0 KB
ID:	143830  
oren64 is offline   Reply With Quote
Old 11-16-2015, 04:18 PM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 77,905
Karma: 68013566
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Air 2, iPhone 6
There was a typo in my original post. Search string should be;

\[\c*\]
HarryT is offline   Reply With Quote
Old 11-16-2015, 04:28 PM   #7
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 1,675
Karma: 23297497
Join Date: Mar 2015
Location: Israel
Device: kobo glo
NO, it didn't work, i try all options and also with new file.
oren64 is offline   Reply With Quote
Old 11-16-2015, 04:31 PM   #8
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 77,905
Karma: 68013566
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Air 2, iPhone 6
Here's the documentation of the Notepad++ regex syntax:

http://docs.notepad-plus-plus.org/in...ar_Expressions

Do some experiments and find what works. It'll be something close to what I suggested.
HarryT is offline   Reply With Quote
Old 11-16-2015, 05:23 PM   #9
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 1,675
Karma: 23297497
Join Date: Mar 2015
Location: Israel
Device: kobo glo
I used \[...].
every point equal one character, \[...]=[abc], \[.....]=\[abcde].

Thanks Harry
oren64 is offline   Reply With Quote
Old 11-18-2015, 12:24 PM   #10
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 1,675
Karma: 23297497
Join Date: Mar 2015
Location: Israel
Device: kobo glo
I find a solution to the problem i post here.

Quote:
-If a phrase shows as "word-word" it douse not show the definition, despite that there is definition to phrase "word word".
1)open the text file with Nodepad++,copy all content to Excel, you get two columns A=word B=translation.
2)copy column A to new file in Nodepad++, replace all character " " to "-".
3)copy the new column A from Nodepad++ to column C.
4)use this function to all the cells in column D.
Code:
=IF(A1<>C1,CONCATENATE(A1,"|",C1),A1)
5)copy column B to E.
6) copy column D and E to a new file in Nodepad++.

before:
Code:
fiqh	(איסלאם) שריעה, הפילוסופיה והמדע של הדין האיסלאמי המבוסס על כתבי הקוראן
fir|firs	 אשוח (עץ)
fir cone	איצטרובל האשוח המפיק זרעים
fir tree	אשוח (שם עץ-יער מחטני, שם עץ חג המולד)
fire|fires|firing|fired	<font color="#007000">verb</font>: לפטר; להבעיר, להצית; לירות; להלהיב; לזהור; ליידות; להידלק; להשתלהב
fire|fires	 אש; שריפה, דליקה; ירי; מדורה; זוהר; התלהבות; תאווה
fire a house	<font color="#007000">verb</font>: לשרוף בית, להעלות בית באש
fire alarm	גלאי אש, אזעקת אש, מכשיר הרגיש לעשן ומצפצף במקרה של שריפה
fire and movement	תנועה ואש, עיקרון צבאי על-פיו תנועת כוח מתבצעת בחיפויו של כוח אחר הממטיר אש
after:
Code:
fiqh	(איסלאם) שריעה, הפילוסופיה והמדע של הדין האיסלאמי המבוסס על כתבי הקוראן
fir|firs	 אשוח (עץ)
fir cone|fir-cone	איצטרובל האשוח המפיק זרעים
fir tree|fir-tree	אשוח (שם עץ-יער מחטני, שם עץ חג המולד)
fire|fires|firing|fired	<font color="#007000">verb</font>: לפטר; להבעיר, להצית; לירות; להלהיב; לזהור; ליידות; להידלק; להשתלהב
fire|fires	 אש; שריפה, דליקה; ירי; מדורה; זוהר; התלהבות; תאווה
fire a house|fire-a-house	<font color="#007000">verb</font>: לשרוף בית, להעלות בית באש
fire alarm|fire-alarm	גלאי אש, אזעקת אש, מכשיר הרגיש לעשן ומצפצף במקרה של שריפה
fire and movement|fire-and-movement	תנועה ואש, עיקרון צבאי על-פיו תנועת כוח מתבצעת בחיפויו של כוח אחר הממטיר אש

Last edited by oren64; 11-19-2015 at 06:23 AM.
oren64 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Marked text edit problem MerlinMama Editor 5 07-29-2014 10:15 AM
Edit Toolbar Icon Text ddexter6 Calibre 1 02-06-2014 04:51 PM
How do you edit as Epub file, the text in Word? automa Sigil 13 06-13-2013 08:02 PM
Edit text file in Word first? owly Sigil 23 04-05-2013 12:56 PM
Can you edit the text in LRF format Lanyon Calibre 9 03-13-2009 07:58 AM


All times are GMT -4. The time now is 05:58 AM.


MobileRead.com is a privately owned, operated and funded community.