【iebook 超级精灵系列教程 1】新建杂志

基础内容请参阅官方帮助手册,博主在此只是把自己的非官方经验写下来供大家参考。

温馨提示:本文仅作学习研究之用,切勿用作商业用途,违者后果自负。

看了本篇文章,你能学到什么?

  1. 知道永久自定义杂志模板方法,不用每次新建时都去改尺寸啥的
  2. 修改杂志底部版权
  3. 去掉封底技术支持图样

先展示下博主的新建杂志页面

iebook 超级精灵 新建杂志 界面
iebook 超级精灵 新建杂志 界面

和你的是不是有点不一样呢?
通过博主的不断研究,杂志列表里的内容是软件读取其安装目录下的 xml/toolbox-category.xml文件里的参数得到的。

使用记事本(或其他文本编辑器程序)打开该文件(如:C:\Program files\iebook\xml\toolbox-category.xml),找到“组件模板”段,内容如下:

<category name="组件模板" index="0">
	<class name="电子杂志" index="0">
		<item name="标准组件 750X550px" type=".ie" file="template\0\component.ie" preview="preview\1BF6FBFF-73AE-4048-AC47-CA833BB944B8.jpg">
			<Mag_width>375</Mag_width>
			<Mag_height>550</Mag_height>
			<Window_width>800</Window_width>
			<Window_height>600</Window_height>
		</item>
		<item name="全屏组件 950X650px" type=".ie" file="template\0\component.ie" preview="preview\1BF6FBFF-73AE-4048-AC47-CA833BB944B8.jpg">
			<Mag_width>475</Mag_width>
			<Mag_height>650</Mag_height>
			<Window_width>1024</Window_width>
			<Window_height>768</Window_height>
		</item>
		<item name="硬皮组件 750X550px" type=".ie" file="template\0\component.ie" preview="preview\1BF6FBFF-73AE-4048-AC47-CA833BB944B8.jpg">
			<Mag_width>375</Mag_width>
			<Mag_height>550</Mag_height>
			<Window_width>800</Window_width>
			<Window_height>600</Window_height>
			<coverpng>DBCCCB61-F5B1-48E0-9CC3-DD700C92894F.png</coverpng>
			<bcoverpng>8AC6D78A-A6B8-46E5-A5E6-D1F84E0F0F45.png</bcoverpng>
		</item>
	</class>
</category>

如上所示,每项 item (如第3~8行从<item>开始至以</item>结束)就是一套最简洁的杂志模板参数:

<item name="标准组件 750X550px" type="ie" file="template\0\component.ie" preview="preview\1BF6FBFF-73AE-4048-AC47-CA833BB944B8.jpg">
	<Mag_width>375</Mag_width>
	<Mag_height>550</Mag_height>
	<Window_width>800</Window_width>
	<Window_height>600</Window_height>
</item>

其中

<item name="标准组件 750X550px" type="ie" file="template\0\component.ie" preview="preview\1BF6FBFF-73AE-4048-AC47-CA833BB944B8.jpg">
属性 属性值(举例) 备注
name 标准组件 750X550px “新建杂志”界面下显示的名称,需唯一
type .ie 杂志类型,默认,不用改
file template\0\component.ie 杂志组件文件路径,默认,可不改
preview preview\1BF6FBFF-73AE-4048-AC47-CA833BB944B8.jpg 杂志缩略图文件路径
<Mag_width>375</Mag_width>
<Mag_height>550</Mag_height>
<Window_width>800</Window_width>
<Window_height>600</Window_height>
参数 参数值(举例) 备注
Mag_width 375 杂志宽度,数值型,必填项
Mag_height 550 杂志高度,数值型,必填项
Window_width 800 窗口宽度,数值型,必填项
Window_height 600 窗口高度,数值型,必填项
其他可用参数
name 标准组件 杂志组件名称,字符串型
iebook_caption iebook 超级精灵 杂志左上角文本标题,字符串型
iebook_link http://www.iebook.cn 标题链接,字符串型
copyright iebook超级精灵·技术支持 底部版权,字符串型
copylink http://www.iebook.cn 底部链接,字符串型
?IM QQ 联系方式,字符串型,QQ或MSN填其一
?QQ 888888888 QQ号,字符串型
?MSN microsoft@msn.com MSN账号,字符串型
?menuno 2 目录所在页码,数值型,默认值2
?ZineMemo
  • 默认不填,此时“页面模式”为“标准显示”
  • 填写(仅限英文文本)后,此时“页面模式”为“书边显示”,书边英文文本即是该值
?keyword iebook 超级精灵 网页关键字,字符串型
?UseInitMc True 是(True)否(False)显示片头,布尔型
?autoenable True 是(True)否(False)自动翻页,布尔型
?fullscreen True 是(True)否(False)全屏播放,布尔型
?bqzine False 是(True)否(False)显示技术支持,布尔型
?pageshade False 是(True)否(False)显示内页中缝阴影,布尔型
?covershade True 是(True)否(False)显示封面阴影,布尔型
?bcoverpng 8AC6D78A-A6B8-46E5-A5E6-D1F84E0F0F45.png
  • 默认不填,此时显示书脊厚度为False
  • 若填写的话,该值唯一,此时显示书脊厚度为True
?playstate False 是(True)否(False)显示播放进度,布尔型
?ToolsBarTop True 按钮是(True)否(False)置顶,布尔型
?coverpng DBCCCB61-F5B1-48E0-9CC3-DD700C92894F.png
  • 默认不填,此时显示书脊厚度为False
  • 若填写的话,该值唯一,此时显示书脊厚度为True

了解了上述内容后,你就能自定义杂志模板尺寸等内容了,比如如下参数定义了名为“亲亲·我的宝贝”的杂志,缩略图文件“亲亲我的宝贝.jpg”放到程序的 preview 文件夹下

<item name="亲亲·我的宝贝" type=".ie" preview="preview\亲亲我的宝贝.jpg" file="template\0\component.ie">
	<Mag_width>477</Mag_width>
	<Mag_height>700</Mag_height>
	<Window_width>1024</Window_width>
	<Window_height>768</Window_height>
	<name>亲亲·我的宝贝</name>
	<iebook_caption>《亲亲·我的宝贝》</iebook_caption>
	<iebook_link>http://www.ilezhi.cn/mag</iebook_link>
	<copyright>乐之者 | 乐之,为之</copyright>
	<copylink>http://www.ilezhi.cn</copylink>
	<IM>QQ</IM>
	<QQ>123456789</QQ>
	<menuno>2</menuno>
	<ZineMemo>WWW.ILEZHIZHE.COM</ZineMemo>
	<keyword>乐之者 | 乐之,为之</keyword>
	<UseInitMc>true</UseInitMc>
	<autoenable>false</autoenable>
	<fullscreen>true</fullscreen>
	<bqzine>false</bqzine>
	<pageshade>false</pageshade>
	<covershade>true</covershade>
	<bcoverpng></bcoverpng>
	<playstate>false</playstate>
	<ToolsBarTop>true</ToolsBarTop>
	<coverpng></coverpng>
</item>

将“代码”复制粘贴到“组件模板”段里的最后一个</item>后面,保存,启动 iebook 就可以看到了。

发表回复