Properties

  • string Name : name of the book; obsolete, length only 31 bytes, strange format
  • DateTime CreationTime
  • DateTime ModificationTime
  • DateTime BackupTime
  • string FullName : full name of the book optional
  • int TextEncoding
  • string sTextEncoding : ReadOnly, decoded value of TextEncoding
  • int Locale : book locale code; you can set it with LanguageCodes.Name2LCID("en-us") - for american english
  • string sLocale : ReadOnly, decoded value of Locale
  • int InputLanguage : input language code; only for a dictionary
  • string sInputLanguage : ReadOnly, decoded value of InputLanguage
  • int OutputLanguage : output language code only for a dictionary
  • string sOutputLanguage : ReadOnly, decoded value of sOutputLanguage

Properties, records in EXTH block optional

Returns null, when record of this type is absent, or when EXTH block is absent.
Setting null deletes record of given type.
  • string exthAuthor : author of the book
  • string exthPublisher : publisher
  • string exthImprint
  • string exthDescription
  • string exthIsbn
  • string exthSubject
  • string exthPublishingDate
  • string exthReview
  • string exthContributor
  • string exthRights
  • string exthSubjectCode
  • string exthType
  • string exthSource
  • string exthAsin
  • int? exthSample : 1 if the book content is only a sample of the full book
  • string exthAdult : if Adult contents: "yes"
  • string exthRetailPrice : as text
  • string exthRetailPriceCurrency : as text
  • string exthDictionaryShortName
  • int? exthCreatorSoftware : code of ; you can decode it by CreatorSoftware.MobiCreatorSoftware2String(int n)
  • int? exthCreatorMajorVersion
  • int? exthCreatorMinorVersion
  • int? exthCreatorBuildNumber
  • byte? exthClippingLimit : Integer percentage of the text allowed to be clipped. Usually 10.
  • byte? exthttsFlag : 1 - Text to Speech disabled; 0 - Text to Speech enabled
  • string exthCdeType : PDOC - Personal Doc; EBOK - ebook;
  • string exthLastUpdateTime
  • string exthUpdatedTitle : title of the book, too

Interface for controls (ListBox, DataGridView...)

  • IEnumerable<exthRecordAsText> EnumAll

struct exthRecordAsText:
int n : sequential number of record
int Type : type of record
string sData : data of record, as text
//
string TypeName : decoded name of type; CETHX.Type2Name()
string OneLine : one line text per record; TypeName + sData;

General data access functions

For handling of raw data.
  • byte[] _exthGetBytes(int type)
  • string _exthGetString(int type)
  • int? _exthGetInt(int type)
  • short? _exthGetShort(int type)
  • byte? _exthGetByte(int type)

  • bool _exthSetString(int type, string s) : string without '\0' at end
  • bool _exthSetNumber(int type, object value) : value - byte, short, int

General functions

  • int exthRecordCount : count of record in EXTH
  • int[] exthGetTypes : list of types in EXTH
  • void exthDeleteType(int type)
  • int exthDeleteExcept(int[] types) : delete all record in EXTH - except listed


Last edited Nov 23, 2011 at 11:51 AM by Miroslaw_Maczka, version 15

Comments

No comments yet.