Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2005-12-09 20:21:19
Size: 1567
Editor: OsmondLiang
Comment:
Revision 5 as of 2005-12-12 08:43:26
Size: 1637
Editor: limodou
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
    * 默认值为''     * 默认值为
Line 51: Line 51:

  * 使用 EasyGui 生成的界面:

attachment:convertor.jpg

下面描述CDBE V1.0 对 GUI 的需求

  1. 交互性界面元素设计需求
    • bookname: 一个指定书名或站点名的文本框
    • type: 一个转换类型选择列表:包括
      • xml to chunk (值:'chunk')
      • xml to html (值:'html')
      • xml to pdf (值:'pdf')
      • xml to slides (值:'plain')
      • xml to website (值:'web')
    • lang: 一个语言选择列表:包括
      • 简体中文 (值:'zh-cn')
      • 英文 (值:'en')
    • xslt: 一个XSLT选择列表:包括
      • saxon (值:'bdj_')
      • libxslt (值:'bd_')
    • output: 一个输出路径选择的文本框(可选项)
      • 默认值为空
    • msg: 一个在转换过程中给出提示信息的多行文本框
    • trans: 执行转换按钮
    • quit: 退出按钮
  2. 详细说明
    • CDBE 所使用的批处理文件名称 (默认存放在 D:\obp\CDBE\bat 目录下)
      • bd_chunk
      • bdj_chunk
      • bd_html
      • bdj_html
      • bd_fo
      • bdj_fo
      • bdj_pdf
      • bd_plain
      • bdj_plain
      • bd_web
      • bdj_web
    • 命令行字符串生成算法:

    cd D:\obp\CDBE\bat 
    if (type=='web')
       cmd = xslt+type+" "+bookname+" "+output
    elseif (type=='pdf')
       # 需顺序执行 cmd1、cmd2
       cmd1 = xslt+'fo '+bookname+" "+lang+" "output
       cmd2 = 'bdj_pdf '+bookname+" "+lang+" "output
    else
       cmd = xslt+type+" "+bookname+" "+lang+" "+output
    fi

attachment:convertor.jpg

CDBEGUI (last edited 2009-12-25 07:16:06 by localhost)