MS Word to XHTML [英] MS Word to XHTML

查看:192
本文介绍了MS Word to XHTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何宏/其他工具 - 免费或商业 - 可以将
长Word文档拆分为多个XHTML页面?


任何评论合适产品的质量/效果也很受欢迎。

解决方案

__ / [Caversham]周日11 2005年9月06:02 \__

是否有任何宏/其他工具 - 免费或商业 - 可以将长Word文档拆分成多个XHTML页面?

欢迎任何关于合适产品质量/效果的评论。




我建议你做以下事情:


*下载Open Office 2测试版(openoffice.org)


*在Windows机器上安装


*在Open Office中打开Word文档


*保存或导出为HTML


*根据需要对输出进行分段,可能是手动( WYSIWYG程序如

Word没有结构或语义的概念)


*在生成的HTML上运行HTMLTidy(在sourceforge.org中找到)


*修改输出以符合XHTML标准


*使用搜索&替换上面的任务


*最后,确保你的代码验证(W3C验证器)


祝你好运,


Roy


-

Roy S. Schestowitz | Slashdot符合标准......在日本
http://Schestowitz.com | SuSE Linux | PGP-Key:74572E8E

7:40 am up 17 days 6:08,3位用户,平均负载:2.10,2.08,1.85


<在2005年9月11日的Sun上,Roy Schestowitz写道(在alt.html上看到):


[...]

*根据需要对输出进行分段,可能是手工制作(WYSIWYG程序像Word一样没有结构或语义的概念)




这不是任何意味着针对你个人,但你的帖子

触发了我的回复,看起来好像知识正在进行中

倒退。


正确使用MS Word使用样式,面向

文档的结构。 (如果我按照自己的方式,我会从Word的

主菜单中删除直接样式按钮,并将它们隐藏在高级用户菜单中)。这样的

正确制作的Word文档可以合理地转换为结构HTML,并且适合网络使用的样式表可以是

应用(它通常不会是相同的样式表(=样式模板),因为

适合打印的Word文档,当然!)。


我有一些经验,在1997 - 8年左右,(付费软件)rtftohtml程序

- 随后根据公司名称Logictran重新命名和营销 - 它

对此进行了大量整理。我必须承认,自改名之后我就没有经历过这样的经历,但是我可以说原来这个原始计划的原则似乎就像我一样。寻找,不像其他地方的大多数其他伪WYSIWYG垃圾(冒犯了所有适合WWW的b $ b的感觉)。


使用那个rtftohtml程序,结构合理的Word可以变成

结构合理的HTML,并在章节或章节标题上自动拆分

自动,自动生成HTML索引和目录

。好吧,有一些粗糙的边缘,但至少

原则出现就好了。我觉得很难过,大约7年后我们似乎已经回到了直接造型的石器时代,并且在我转换的大部分Word转换中都是伪造的所谓WYSIWYG已经看过了。


[注意 - 还有其他程序叫做rtftohtml或rtf2html - 它可能是

,其中有些人做类似的工作,我可以'不论是支持还是反对他们,

我只是在1998年左右开始评论这个

特定节目第4版的合理用户。]


Alan J. Flavell写道:

On Sun,2005年9月11日,Roy Schestowitz写道(在alt.html上看到):

[...]

*根据需要对输出进行分段,可能是手工(WYSIWYG程序像Word一样没有结构或语义概念)


这绝不是针对你个人的,但是你的帖子引发了我的回应,它看起来像如果知识正在向后推进。

正确使用MS Word使用样式,面向
文档的结构。 (如果我按照自己的方式,我会从Word的
主菜单中删除直接样式按钮,并将它们隐藏在高级用户菜单中)。这些
正确制作的Word文档可以合理地转换为结构化HTML,然后可以应用适合Web使用的样式表(通常不会是相同的) 样式表(=样式模板)因为
适用于打印的Word文档,当然!)。

我有一些经验,大约在1997-8,与( payware)rtftohtml程序
- 随后在公司名称Logictran下重命名和营销 - 它已经非常好地解决了这个问题。我必须承认,自从改名后我没有经验,但我可以说原始程序的原则似乎与我所寻求的不同,不像大多数<来自其他地方的其他伪WYSIWYG垃圾(冒犯了所有适合WWW的感觉)。

使用那个rtftohtml程序,结构合理的Word可以变成<结构合理的HTML,自动分割章节或章节标题,自动生成HTML索引和目录。好吧,有一些粗糙的边缘,但至少
原则出现就好了。我发现很遗憾,大约7年后,我们似乎已经回到了直接造型的石器时代,并且在我见过的大部分Word转换中都是伪WYSIWYG。

[注意 - 还有其他程序叫rtftohtml或rtf2html - 可能是
他们中的一些做了类似的工作,我不能说或反对他们,
我是从1998年左右开始评论作为该特定程序版本4的合理用户。]




Word XP及更高版本以XML格式存储其文档不是吗?你好b / b
可能会写你自己的XSLT很容易变成HTML。


-

x theSpaceGirl(miranda)


#lead designer @ http://www.dhnewmedia.com

#删除垃圾邮件,或使用网站上的表格#

#this post(c)Miranda Thomas 2005

#明确没有给予Forum4Designers的许可

#复制这篇文章。


Is there any macro / other tool - free or commercial - that can split
long Word docs into multiple XHTML pages?

Any comments on the quality/effectiveness of suitable products also
welcomed.

解决方案

__/ [Caversham] on Sunday 11 September 2005 06:02 \__

Is there any macro / other tool - free or commercial - that can split
long Word docs into multiple XHTML pages?

Any comments on the quality/effectiveness of suitable products also
welcomed.



I would advice you to do the following:

* Download Open Office 2 beta (openoffice.org)

* Install it on your Windows machine

* Open the Word document in Open Office

* Save or export as HTML

* Fragment the output as requires, probably by hand (WYSIWYG programs like
Word have no notion of structure or semantics)

* Run HTMLTidy on the resulting HTML (find it in sourceforge.org)

* Modify output to fit XHTML standards

* Use search & replace for the task above

* Lastly, make sure your code validates (W3C validator)

Good luck,

Roy

--
Roy S. Schestowitz | "Slashdot is standard-compliant... in Japan"
http://Schestowitz.com | SuSE Linux | PGP-Key: 74572E8E
7:40am up 17 days 6:08, 3 users, load average: 2.10, 2.08, 1.85



On Sun, 11 Sep 2005, Roy Schestowitz wrote (seen on alt.html):

[...]

* Fragment the output as requires, probably by hand (WYSIWYG programs
like Word have no notion of structure or semantics)



This isn''t by any means aimed at you personally, but your posting
triggered a response from me, and it looks as if knowledge is proceeding
backwards.

Proper use of MS Word uses Styles, oriented towards the structure of the
document. (If I had my way, I''d rip the direct styling buttons out of the
main menu of Word, and hide them away in an Advanced Users menu). Such
properly-made Word documents are reasonably capable of being converted
well to structural HTML, and a stylesheet suitable for web use can then be
applied (it usually won''t be the same "style sheet" (= style template) as
would be suitable for a printed Word document, of course!).

I had some experience, around 1997-8, with the (payware) rtftohtml program
- subsequently renamed and marketed under the company name Logictran - it
had this pretty-much sorted out. I must admit I haven''t got experience of
it since the change of name, but I can say that the principles of the
original program seemed to what I was looking for, unlike most of the
other pseudo-WYSIWYG garbage from other places (that offended all sense of
what is suitable for the WWW).

With that rtftohtml program, decently structured Word could be turned into
decently structured HTML, and split on chapter or section headings quite
automatically, with HTML indexes and table of contents generated
automatically. OK, there were some rough edges, but at least the
principles showed up just fine. I find it sad that some 7 years later we
seem to have fallen back to the stone age of direct styling and
pseudo-WYSIWYG in most of the Word conversions that I have seen.

[Note - there are other programs called rtftohtml or rtf2html - it may be
that some of them do a similar job, I can''t speak for or against them,
I''m just commenting as a reasonably satistfied user of version 4 of this
particular program from around 1998 onwards.]


Alan J. Flavell wrote:

On Sun, 11 Sep 2005, Roy Schestowitz wrote (seen on alt.html):

[...]

* Fragment the output as requires, probably by hand (WYSIWYG programs
like Word have no notion of structure or semantics)


This isn''t by any means aimed at you personally, but your posting
triggered a response from me, and it looks as if knowledge is proceeding
backwards.

Proper use of MS Word uses Styles, oriented towards the structure of the
document. (If I had my way, I''d rip the direct styling buttons out of the
main menu of Word, and hide them away in an Advanced Users menu). Such
properly-made Word documents are reasonably capable of being converted
well to structural HTML, and a stylesheet suitable for web use can then be
applied (it usually won''t be the same "style sheet" (= style template) as
would be suitable for a printed Word document, of course!).

I had some experience, around 1997-8, with the (payware) rtftohtml program
- subsequently renamed and marketed under the company name Logictran - it
had this pretty-much sorted out. I must admit I haven''t got experience of
it since the change of name, but I can say that the principles of the
original program seemed to what I was looking for, unlike most of the
other pseudo-WYSIWYG garbage from other places (that offended all sense of
what is suitable for the WWW).

With that rtftohtml program, decently structured Word could be turned into
decently structured HTML, and split on chapter or section headings quite
automatically, with HTML indexes and table of contents generated
automatically. OK, there were some rough edges, but at least the
principles showed up just fine. I find it sad that some 7 years later we
seem to have fallen back to the stone age of direct styling and
pseudo-WYSIWYG in most of the Word conversions that I have seen.

[Note - there are other programs called rtftohtml or rtf2html - it may be
that some of them do a similar job, I can''t speak for or against them,
I''m just commenting as a reasonably satistfied user of version 4 of this
particular program from around 1998 onwards.]



Word XP and upwards stores its documents in XML format doesn''t it? You
could probably write your own XSLT to turn in into HTML fairly easily.

--
x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
# this post (c) Miranda Thomas 2005
# explicitly no permission given to Forum4Designers
# to duplicate this post.


这篇关于MS Word to XHTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆