Differences between revisions 2 and 6 (spanning 4 versions)
Revision 2 as of 2005-12-09 19:31:42
Size: 592
Editor: OsmondLiang
Comment:
Revision 6 as of 2005-12-12 08:45:10
Size: 1789
Editor: limodou
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 1. 交互性设计需求
  * A: 一个选择输入源代码文件的文本框    * B: 一个转换类型选择列表:包括
    * xml to chunk
    * xml to
html
    * xml to pdf
    * xml to slides
    * xml to website
  * C
: 一个语言选择列表:包括
    * zh-cn
    * en
  * D
: 一个XSLT选择列表:包括
    * saxon
    * libxslt
  * E
: 一个输出路径选择的文本框
  * F
: 一个在转换过程中给出提示信息的多行文本框
  * G: 执行转换按钮
  * H: 退出按钮
 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: 退出按钮
Line 22: Line 23:
  * 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
}}}

  * 参考: [http://osmond.cn/cdbe/manual/ch04s02.html CDBE批处理命令的使用方法]

  * 使用 EasyGui 生成的界面:

attachment:convertor.jpg

目前不能实现message消息框,只能是运行在Dos窗口,或另开窗口专门用来显示输出。即界面选择与输出是分离的。

下面描述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

目前不能实现message消息框,只能是运行在Dos窗口,或另开窗口专门用来显示输出。即界面选择与输出是分离的。

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