ÿþ# This is example of config file to make java book from text file testbook.txt # Config file must be in UNICODE format # Read more on www.mjsoft.info # Run from commad line: # mjbookmaker.exe -make txt.cfg # #**** Basic book options **** # #BookName: [string] name of output java book (midlet), for example testbook BookName=testbookbg # #BookInfo: [string] addition information about book - author, publisher, year etc BookInfo="5AB # #TextFileName: [string] source text file TextFileName=testbook_bg.txt # #OutputDir: [string] directory for output files OutputDir=midlets # #LinkLFileName: [string] full path to small image in PNG format which will used as pointer image for hyperlinks for landscape display mode LinkLFileName=linkl.png # #LinkPFileName: [string] full path to small image in PNG format which will used as pointer image for hyperlinks for portrait display mode LinkPFileName=linkp.png # #BackgroundFileName: [string] full path to image in PNG format which will used as background image below text BackgroundFileName= # #PasswordMode: [integer] 0 - no password, 1 - ask for password once, 2 - ask for password every time PasswordMode=0 # #Password: [integer] 3..6 digits code (password) for text encryption Password=0 # #**** Advanced book options **** #Parameters placed into JAD/JAR files # #MidletVersion: [string] version of output java midltes, for example 1.0, 2.0 MidletVersion=5.0.8 # #MidletVendor: [string] java book publisher for example mjSoft MidletVendor=XRon.net # #MidletInfoUrl: [string] url like http://www.mjsoft.info MidletInfoUrl=http://xron.net # #MidletDescription: [string] short decription of midlet MidletDescription=Bulgarian Demo Book # #CustomMidletData1: [string] additional custom midlet data1 in format key: value, for example Nokia-MIDlet-Category: Game CustomMidletData1=Nokia-MIDlet-Category: Game # #CustomMidletData2: [string] additional custom midlet data2 in format key: value, for example Nokia-MIDlet-Category: Game CustomMidletData2= # #CustomMidletData3: [string] additional custom midlet data3 in format key: value, for example Nokia-MIDlet-Category: Game CustomMidletData3= # #IconFileName: [string] full path to small (64*64, depends on phone) image in PNG format which will used as icon for midlet IconFileName=icon.png # #**** Font options **** #Program can copy up to 3 Windows fonts into output midlets to display text in the same way on ANY phone. #But each embedded font adds about 2-12 kb to output midlet. #Anyway mjbook is able to display text using phone up to 12 types of phone fonts. But these fonts are manufacturer dependent. # #FontSize1: [integer] font1 size, for example 9 FontSize1=9 # #FontName1: [string] font1 name, for example Arial FontName1=Arial Unicode MS # #Font.Bold1: [true, false] is font1 bold type Font.Bold1=false # #Font.Italic1: [true, false] is font1 italic type Font.Italic1=false # #FontSize2: [integer] font2 size, for example 10 FontSize2=12 # #FontName2: [string] font2 name, for example Arial FontName2=Arial Unicode MS # #Font.Bold2: [true, false] is font2 bold type Font.Bold2=false # #Font.Italic2: [true, false] is font2 italic type Font.Italic2=false # #FontSize3: [integer] font3 size, for example 11 FontSize3= # #FontName3: [string] font3 name, for example Arial FontName3= # #Font.Bold3: [true, false] is font3 bold type Font.Bold3= # #Font.Italic3: [true, false] is font3 italic type Font.Italic3= # #**** Multipart options **** #Program can divide large source texts into several output midlets due to midlet size is limited on some phones. #There are 4 possible cases: #1) TextPartSize=0 and TextPartCount=0 multipart is disabled. All the source data (text, pictures) will be put to a single output midlet. #2) TextPartSize > 0 and TextPartCount=0 multipart is enabled. Number of output parts (midltes) is calculated by TextSize/TextPartSize. Size of text in each part is not great than TextPartSize #3) TextPartSize = 0 and TextPartCount > 0 multipart is enabled. Number of output parts (midltes) equals TextPartCount. Size of text in each part is calculated by TextSize/TextPartCount. #4) TextPartSize > 0 and TextPartCount > 0 multipart is enabled. Program combines 2 previous methods to divide text into parts # #TextPartSize: [integer] size (in letters) of one part of source text to be included into output midlet TextPartSize=0 # #TextPartCount: [integer] source text will be divided onto specified amounts of parts TextPartCount=0 # #TextHead: [string] Text header to be added to source text. For example book an author, publisher etc. TextHead= # #TextTail: [string] Text tail to be added to source text. For example link to another book of the author. TextTail= # #TextPartHead: [string] Text header to be added to each part of multi part midlets for example information about multi part midlet. TextPartHead= # #TextPartTail: [string] Text tail to be added to end of each part of multi part midlets for example information about multi part midlet. TextPartTail= # #TextPartLink: [string] Hyperlink information to be added to end of each part of multi part midlets. TextPartLink= # #**** Text processing options **** #Here are tags recognized by mjBookMaker: #1) Tag "label" is needed for hyperlinks #<#label 101> #<#label 300> #2) Tags "header" of chapters, titles etc. Program builds table of content using these tags. #<#header 1>Chapter 1<#/header> #<#header 5>Chapter 5<#/header> #3) Tag "tableofcontent" specifies place where table of content will be inserted #4) Tags "image" allows insert image to specified position. Image file name must be full. #<#image pic001.png> #5) Tags "link" implements hyperlinks functionality. Each hyperlink is underlined and highlighted by specified color. Active hyperlink has pointer (small image defined by LinkLFileName and LinkPFileName parameters). Hyperlink targets are: #5.1) Images - image will be shown if user follows hyperlink #<#link image pic001.png>Flag of <#/link> #5.2) Label tags - current reading position is changed to label position #<#link label 101>Chapter 1<#/link>. #5.3) External resources (http, wap). mjBook invokes phone browser to access these links. #<#link http www.mjsoft.info>See details on my site<#/link> #5.4) Call to specified phone number #<#link phone +78881234567>my phone<#/link> #5.5) Send SMS to specified phone number #<#link sms +78881234567:test sms message from java book>send me feedback<#/link> # #FormatEn: [true, false] enable/disable text formatting for small screens (removing redundant spaces etc) FormatEn=false # #TagsEn: [true, false] enable/disable tags (pictures, hyperlinks) in source text TagsEn=true # #**** Splash screen options **** # #SplashTimeout: [integer] how long splash screen is shown (in seconds). 0 means that user must press any key SplashTimeout=2 # #SplashFileName: [string] full path to image in PNG format which will used in splash screen at midlet startup SplashFileName=logo.png # #**** Display options **** #That section describes default display options to be applied after midlet startup. User can change these values on fly while reading text. # #LineSpacing: [integer] gap between neighbor lines of text, values -1, 0, 1 LineSpacing=0 # #CharSpacing: [integer] gap between neighbor letters, values -1, 0, 1 CharSpacing=0 # #WordWrap: [true, false] enable/disable word wrap WordWrap=false # #PortraitLayout: [true, false] portrait or landscape layout PortraitLayout=true # #TextMargin: [integer] gap (in pixels) between border of screen and text TextMargin=3 # #SmoothScroll: [integer] smooth scroll level 0..70 (0 - disabled, lowest value - fast, highest value - slow) SmoothScroll=20 #Up to 8 color maps are allowed. # #BackColor1: [integer] back color1 in RGB, for example white color $ffffff BackColor1=$FFFFFF # #FontColor1: [integer] font color1 in RGB, for example black color $0 FontColor1=$000000 # #LinkColor1: [integer] hyperlink font color1 in RGB, for example red color $0000ff LinkColor1=$0000FF # #BackColor2: [integer] back color2 in RGB, for example white color $ffffff BackColor2=$FFFFFF # #FontColor2: [integer] font color2 in RGB, for example black color $0 FontColor2=$400000 # #LinkColor2: [integer] hyperlink font color2 in RGB, for example red color $0000ff LinkColor2=$009000 # #BackColor3: [integer] back color3 in RGB, for example white color $ffffff BackColor3= # #FontColor3: [integer] font color3 in RGB, for example black color $0 FontColor3= # #LinkColor3: [integer] hyperlink font color3 in RGB, for example red color $0000ff LinkColor3= # #BackColor4: [integer] back color4 in RGB, for example white color $ffffff BackColor4= # #FontColor4: [integer] font color4 in RGB, for example black color $0 FontColor4= # #LinkColor4: [integer] hyperlink font color4 in RGB, for example red color $0000ff LinkColor4= # #BackColor5: [integer] back color5 in RGB, for example white color $ffffff BackColor5= # #FontColor5: [integer] font color5 in RGB, for example black color $0 FontColor5= # #LinkColor5: [integer] hyperlink font color5 in RGB, for example red color $0000ff LinkColor5= # #BackColor6: [integer] back color6 in RGB, for example white color $ffffff BackColor6= # #FontColor6: [integer] font color6 in RGB, for example black color $0 FontColor6= # #LinkColor6: [integer] hyperlink font color6 in RGB, for example red color $0000ff LinkColor6= # #BackColor7: [integer] back color7 in RGB, for example white color $ffffff BackColor7= # #FontColor7: [integer] font color7 in RGB, for example black color $0 FontColor7= # #LinkColor7: [integer] hyperlink font color7 in RGB, for example red color $0000ff LinkColor7= # #BackColor8: [integer] back color8 in RGB, for example white color $ffffff BackColor8= # #FontColor8: [integer] font color8 in RGB, for example black color $0 FontColor8= # #LinkColor8: [integer] hyperlink font color8 in RGB, for example red color $0000ff LinkColor8= # #**** Image options **** #Important: Image resize and format conversion require Image Magic Installed and registered as COM object. #Here are possible values for ImageMode #0 Do not import images #1 Import images as is (do not use ImageMagic) #2 Import, resize, convert and choose smallest (PNG or JPEG) using ImageMagic #3 Import, resize and convert to PNG using ImageMagic #4 Import, resize and convert to JPEG using ImageMagic # #ImageMode: [integer] value from 0 to 6 ImageMode=1 # #ImageMargin: [integer] gap (in pixels) between border of screen and text ImageMargin=5 # #ImagePngOptions: [string] Image Magic rule for PNG images (see Image Magic manuals), for example -resize 160x128> -depth 8 ImagePngOptions=-resize 160x128> -depth 8 # #ImageJpgOptions: [string] Image Magic rule for JPG images (see Image Magic manuals), for example -resize 160x128> -quality 100 -depth 8 ImageJpgOptions=-resize 160x128> -quality 100 -depth 8 # #**** Midlet localization **** #Main menu items # #0: 0=1: 02830F8O # #1: 1=2: >1028 <0@:5@ # #2: 2=3: B2>@8 <0@:5@ # #3: 3=4: "J@A8 # #4: 4=5: 8A?;59 # #5: 5=6: A25B;5=85 # #6: 6=7: 2B>?;J730=5 # #7: 7=8: 0B0 8 G0A # #8: 8==D> 70 :=830B0 # #9: 9=><>I # #10: 10==B>A=> # #11: 11=7E>4 # #20: Top string for splash screen 20=mjBook 5.0.8 # #21: Bottom string for splash screen 21=Xron.net # #50: 50=5=N # #51: 51=>:068 87>1@065=85 # #52: 52=B2>@8 ;8=:0 # #53: 53=1048 A5 # #54: 54=7?@0B8 SMS # #55: 55=48 =0 #BackLight setup form # #100: 100=0AB@>9:0 >A25B;5=85 # #101: 101=A25B;5=85 # #102: 102=8=038 87:;. # #103: 103=8=038 2:;. # #104: 104=10 A5: # #105: 105=20 A5: # #106: 106=30 A5: # #107: 107=40 A5: # #108: 108=/@:>AB (1-100%) # #109: 109=>=B@>;0 =0 >A25B;5=85B> @01>B8 A0<> 70 Nokia #Display setup from # #200: 200=0AB@>9:0 48A?;59 # #201: 201=02J@B0=5 # #202: 202=@5=>A =0 4C<8B5 # #203: 203= 07AB>O=85B> <564C @54>25B5 # #204: 204=-1 # #205: 205=0 # #206: 206=+1 # #207: 207= 07AB>O=85B> <564C 1C:28B5 # #208: 208=-1 # #209: 209=0 # #210: 210=+1 # #211: 211= 07<5@ =0 H@8DB0 0.. # #212: 212=0@B0 =0 F25B>25B5 # #213: 213=;02=0 ?@>:@CB:0 #Navigator form # #300: 300=02830F8O # #301: 301=48 =0 # #302: 302=!J4J@60=85 # #303: 303=J@20 AB@0=8F0 # #304: 304=>A;54=0 AB@0=8F0 # #305: 305=>78F8O (%) # #306: Custom menu item, for example Order 306= # #307: Link which will be actived if user selects custom menu item 307= #Autoscrolling form # #400: 400=2B>?;J730=5 # #401: 401=2B>?;J730=5 # #402: 402=0:JA=5=85 #Text search forms # #500: 500="J@A8 # #501: 501=0<5@8 B5:AB # #502: 502=?F88 =0 BJ@A5=5 # #503: 503=B =0G0;>B> =0 :=830B0 # #504: 504=0G8B09 <0;:8 8 3;02=8 1C:28 # #505: 505="J@A5=5 70 # #506: 506=!?@O=> # #507: 507=O<0 =0<5@5= @57C;B0B #Bookmarks form # #600: 600=0@:5@8 # #601: 601=0?075=8 <0@:5@8 # #602: 602=0@:5@ # #603: 603=0?075= <0@:5@ #Help form - it shows keys assigment etc # #700: 700=><>I >B # #701: 701=*, 018@0=5, O2 softkey, 71>@: # #702: 702=5=N # #703: 703=1: # #704: 704=02830F8O # #705: 705=2: # #706: 706=0?078 <0@:5@ # #707: 707=3: # #708: 708=0@:5@8 # #709: 709=4: # #710: 710="J@A8 # #711: 711=5: # #712: 712=8A?;59 # #713: 713=6: # #714: 714=A25B;5=85 # #715: 715=7: # #716: 716=2B>?;J730=5 # #717: 717=8: # #718: 718=0B0 8 G0A # #719: 719=9: # #720: 720="J@A8 A;5420I>B> # #721: 721=0: # #722: 722=(@8DB # #723: 723=#, Down, Right # #724: 724=!;5420I0 AB@0=8F0 # #725: 725=03>@5, 0;O2>: # #726: 726=@548H=0 AB@0=8F0 #Information form # #800: 800==D>@<0F8O # #801: 801=5B09;8 70 :=830B0: # #802: 802=!B0B8AB8:0 70 :=830B0: # #803: 803= 07<5@ # #804: 804=byte(s), ?@>G5B5=8 # #805: 805=%, >1I> G5B5=> 2@5<5 # #806: 806=, :=830B0 5 >B2>@5=0 # #807: 807=?JB8 # #808: 808=!J74020=5 =0 :=830: # #809: 809=0:A8<C< 2@5<5 70 @8AC20=5 # #810: 810=ms, <0:A. 1C:28 =0 5:@0=0 # #811: 811=, 87?J;=5=85 # #812: 812=1C:28/A5: # #813: information about book 813="5AB>20 :=830 # #814: information aboot book generator 814= mjBookMaker 5.0.8 # #815: Performance 815=7?J;=5=85: # #About form # #900: 900=B=>A=> # #901: 901=5@A8O # #902: 902=2B>@ # #903: Author of the programm 903=Ron # #904: 904=WWW # #905: Author's site 905=xron.net # #906: Programm version 906=5.0.8 # #907: Link (URL) to author's home page 907=http://xron.net # #Date and time form # #1000: 1000=0B0 8 G0A # #1001: 1001=0B0 # #1002: 1002='0A # #1003: 1003=1I> 2@5<5 70 G5B5=5: # #1004: 1004==830B0 5 >B20@O=0: # #1005: 1005=?JB8 #Soft keys commands # #1100: 1100=B:068 # #1101: 1101=>B>2> # #1102: 1102=48 =0 # #1103: 1103=715@8 # #1104: 1104=0 # #1105: 1105=5=N # #1106: 1106=48 =0 ;8=: # #1107: 1107=7E>4 #Error form # #1200: 1200=@5H:0 #Passowrd form # #1300: 1300=0I8B0 A ?0@>;0 # #1301: 1301=0@>;0 # #1302: Password test string 1302=!B@8=3 70 B5AB>20 ?0@>;0