Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2015, 02:00 PM   #1
oren64
I need a chapter break
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: 4,042
Karma: 56058267
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:	277
Size:	122.6 KB
ID:	143821  
oren64 is offline   Reply With Quote
Old 11-16-2015, 02: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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", 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 03:15 PM.
HarryT is offline   Reply With Quote
Advert
Old 11-16-2015, 02:58 PM   #3
oren64
I need a chapter break
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: 4,042
Karma: 56058267
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, 03: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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Did you try the search and replace operation I suggested? It really should work.

Last edited by HarryT; 11-16-2015 at 03:16 PM.
HarryT is offline   Reply With Quote
Old 11-16-2015, 03:16 PM   #5
oren64
I need a chapter break
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: 4,042
Karma: 56058267
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:	160
Size:	74.0 KB
ID:	143830  
oren64 is offline   Reply With Quote
Advert
Old 11-16-2015, 03: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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", 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, 03:28 PM   #7
oren64
I need a chapter break
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: 4,042
Karma: 56058267
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, 03: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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", 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, 04:23 PM   #9
oren64
I need a chapter break
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: 4,042
Karma: 56058267
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, 11:24 AM   #10
oren64
I need a chapter break
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: 4,042
Karma: 56058267
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 05:23 AM.
oren64 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:09 PM.


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