QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2663|回复: 6

fvwm文档资料校对求助

[复制链接]
发表于 2004-4-29 19:05:42 | 显示全部楼层 |阅读模式
在经历了无数次的网上查找之后,我终于放弃了寻找fvwm中文资料的想法.网络上的fvwm的中文资料,大都不完整,遗留了不少的问题给读者,总之,没有一个资料是让人满意的,人说学习LINUX的最大障碍就是懒惰,所以我决定自己翻译一个全面的fvwm中文说明,其取材于fvwm官方网页,涉及了最新fvwm(2.5.x)的方方面面.
全文共有45个部分,以下是索引:fvwm FvwmAnimate FvwmAuto FvwmBacker FvwmBanner FvwmButtons FvwmCommand FvwmConsole FvwmConsoleC.pl FvwmCpp FvwmDebug FvwmDragWell FvwmEvent FvwmForm FvwmGtk FvwmGtkDebug FvwmIconBox FvwmIconMan FvwmIdent FvwmM4 FvwmPager FvwmPerl FvwmProxy FvwmRearrange FvwmSave
FvwmSaveDesk FvwmScript FvwmScroll FvwmTaskBar FvwmTheme FvwmWharf FvwmWinList FvwmWindowMenu focus-link fvwm-bug fvwm-config fvwm-convert-2.2 fvwm-convert-2.4 fvwm-convert-2.6 fvwm-menu-desktop fvwm-menu-directory fvwm-menu-headlines fvwm-menu-xlock fvwm-perllib fvwm-root
但是由于我本人的英语水平有限,翻译过程中难免有错,所以想请兄弟们帮忙校对一下,如果发现错误,请与邮箱[email protected]联系改正.这并不是我懒惰,而是水平有限.下面是FvwmAnimate部分的翻译和原稿,以后会不定期贴出后续部分

名称

FvwmAnimate -Fvwm 动画制作模组
概要

Module FvwmAnimate [ModuleAlias]
FvwmAnimate 只能被 fvwm 调用,命令行不能调用FvwmAnimate模组.在.fvwm2rc文件中,FvwmAnimate特效用以下方式产生

Module FvwmAnimate

fvwm pop-up menu中,FvwmAnimate特效用以下方式产生

DestroyMenu Module-Popup
AddToMenu   Module-Popup "Modules" Title
+ "Fvwm Animate Icons" Module FvwmAnimate ModuleAlias

描述
FvwmAnimate模组或命令产生最小化窗口或最大化窗口的动画效果,有6不同的动画效果可用

调用

FvwmAnimate 必须被 fvwm 窗囗管理器调用.当调用中含有OptionalName 参数时, ModuleAlias 用来查找配置命令,配置文件, 并且自动产生菜单和窗体来代替"FvwmAnimate" 在启动的过程中 FvwmAnimate根据配置定义菜单和窗体,并且控制FvwmAnimate.默认的菜单名是 "MenuFvwmAnimate" ,窗体名是"FormFvwmAnimate"。如果name参数被指定,菜单将会是 "Menu<ModuleAlias>" ,而窗体将会是 "form<ModuleAlias>" 。
假定你已经有了一个被称为 "Module-Popup" 的 builtin 菜单,你可以像这样来配置它

AddToFunc "StartFunction" "I" Module FvwmAnimate
AddToMenu "Module-Popup" "Control Animation" Popup MenuFvwmAnimate

设置选择项

自从独立的菜单动画模组允许被FvwmAnimate完全控制,你不必真的了解每一个配置指令的作用.这一段会描述他们.
FvwmAnimate从fvwm配置数据库得到配置信息 (see fvwm(1),section MODULE COMMANDS).除此之外, FvwmAnimate读文件 $HOME/FvwmAnimate,并且当它运行时接受来自fvwm的模组和指令。

如果 ModuleAlias 用来启动 FvwmAnimate, 则名称选项被用于所有的指令,消息,菜单和窗体 FvwmAnimate根据配置文件名来生成菜单和窗体.不像其他的 fvwm 模组,很少有理由使用名称选项。

*FvwmAnimate:Color color

定义FvwmAnimate所使用的颜色,即单一的背景颜色.依赖你的显示模式,这个因素将会改变的显示效果.尤其在 8 位显示装置上,如果后台作业是一种单一的颜色它有效。你必须实验看它是如何工作的。

内定的颜色不真的单一色,其可以被当做 "Black^White"来定义, 或只是 "None".当调色板被用于 fvwm移动或调整窗体大小时情况是一样的。

其他的颜色可以用标准X颜色记号表示.如,颜色名称 "LightBlue", 或 RGB 数值 "#FFFFFF".

*FvwmAnimateixmap pixmap
使用 pixmap 做背景。如果背景颜色比较单一则这种做法是可行的

*FvwmAnimate:Delay msecs
定义FvwmAnimate在窗体动画之间休眠多少毫秒。

*FvwmAnimate:Iterations iterations
定义FvwmAnimate的动画步骤多少。

*FvwmAnimate:Twist twist
定义FvwmAnimate 图标化窗口时刷新多少次。

*FvwmAnimate:Width width
定义FvwmAnimate的宽度范围.内定的宽度值为0(zero),其比1要宽.

*FvwmAnimate:Effect mode
定义FvwmAnimate使用的动画效果.内定的效果是:Frame, Lines, Flip, Turn, Zoom3D, Twist Random, and None.在FvwmAnimate被自动地启动的情况下,配置文件中的设置通常是None,但是个别的使用者不希望它运行。

*FvwmAnimate:Stop

使FvwmAnimate停止。

*FvwmAnimate:Save
使FvwmAnimate把一个被命名为".FvwmAnimate"的配置文件保存在使用者的home目录.在启动过程中 FvwmAnimate会自动读取这一文件.

指令

FvwmAnimate 可以通过 "SendToModule"指令生产动画,指令的格式是:

SendToModule FvwmAnimate animate sx sy sw sh dx dy dw dh

第二个字段一定要和FvwmAnimate的名称相配。在animate后的8个栏位一定是数字。前4个为开始( 或起始) 动画的位置。后4个是动画的目的地。4个数字中有2对,表示长方形。前2个数字是表示长方形正确的 x  y 位置。后2个数目是长方形的宽度和高度。一或多个的空间能用指令划分栏位。

模组可以用"SendToModule" 命令还原窗口,或你想出你自己的方法发挥这一个指令的各种乐趣。

附加指令是:pause, play, push, pop and reset.这些指令是被空格分开的。

pause使模组暂时不生产任何的动画。play使模组再一次生产动画。push stores the current playing state for a future and pop restores it.reset删除所有的储存状态并设置播放。

假如,我们不想等候40 xterms的动画:

SendToModule FvwmAnimate pause
All (XTerm) Iconify on

如果我们不损害播放状态,则:

SendToModule FvwmAnimate push pause
All (XTerm) Iconify on
SendToModule FvwmAnimate pop

起始

FvwmAnimate 动画以来自 Afterstep 1.5 pre6 的模组为基础。移植到fvwm中Dan Espen<[email protected]> 做了许多改变,在下面是最初的作者和认可。

作者
Alfredo Kengi Kojima <[email protected]>

认可

这些人对 FvwmAnimate有帮助:
Kaj Groner <[email protected]>
Twisty iconification, configuration file parsing, man page.
Frank Scheelen <[email protected]>


NAME
FvwmAnimate - the Fvwm Animate module   
SYNOPSIS
Module FvwmAnimate [ModuleAlias]
FvwmAnimate can only be invoked by fvwm. Command line invocation of the FvwmAnimate module will not work.

From within the .fvwm2rc file, FvwmAnimate is spawned as follows:

Module FvwmAnimate


or from within an fvwm pop-up menu:
DestroyMenu Module-Popup
AddToMenu   Module-Popup "Modules" Title
+ "Fvwm Animate Icons" Module FvwmAnimate ModuleAlias



DESCRIPTION
The FvwmAnimate module animates iconification and de-iconification or on command. There are currently 6 different animation effects.

INVOCATION
FvwmAnimate must be invoked by the fvwm window manager. When invoked with the OptionalName argument, the ModuleAlias is used to find configuration commands, configuration files, and name the internally generated menus and forms instead of "FvwmAnimate". During startup, FvwmAnimate defines menus and forms for configuring and controlling FvwmAnimate. The default menu name is "MenuFvwmAnimate" and the form name is "FormFvwmAnimate". If the optional name is used, the menu would be "Menu<ModuleAlias>" and the form would be "Form<ModuleAlias>".
Assuming you already had a builtin menu called "Module-Popup", you could use FvwmAnimate by configuring it like this:

AddToFunc "StartFunction" "I" Module FvwmAnimate
AddToMenu "Module-Popup" "Control Animation" Popup MenuFvwmAnimate



CONFIGURATION OPTIONS
Since the pop up menu "MenuFvwmAnimate" allows complete control of the FvwmAnimate module, you don't really have to know what any of the configuration commands are. This section describes them anyway.
FvwmAnimate gets configuration info from fvwm's module configuration database (see fvwm(1), section MODULE COMMANDS). In addition, FvwmAnimate reads the file $HOME/.FvwmAnimate, and accepts commands from fvwm and its modules as it runs.

If ModuleAlias is used to start FvwmAnimate, the optional name is used in all commands, messages, menus and forms generated by FvwmAnimate and in the configuration file name. Unlike other fvwm modules, there is little reason to use the optional name.


*FvwmAnimate: Color color
Tells FvwmAnimate what color to draw with. The color is "XOR'ed" (exclusive ORed) onto the background. Depending on the display type you are using, the effect this causes will vary. Especially on 8-bit displays, it helps if the background is a solid color. You have to experiment with this to see how it works.
The default color is not really a color and can be entered as "Black^White", or more simply "None". This is the same as the default XOR mask used by fvwm for move and resize frames.

Other colors can be specified using standard X color notation. Ie. color names like "LightBlue", or RGB values like "#FFFFFF".


*FvwmAnimate: Pixmap pixmap
Tells FvwmAnimate to use pixmap to draw with. This can be useful if *FvwmAnimate: Color gives poor results.

*FvwmAnimate: Delay msecs
Tells FvwmAnimate how many milliseconds to sleep between frames of animation.

*FvwmAnimate: Iterations iterations
Tells FvwmAnimate how many steps to break the animation into.

*FvwmAnimate: Twist twist
Tells FvwmAnimate how many revolutions to twist the iconification frame.

*FvwmAnimate: Width width
Tells FvwmAnimate how wide a line to draw with. The default width of 0 (zero) is a fast line of Width 1.

*FvwmAnimate: Effect mode
Tells FvwmAnimate which animation effect to use. Currently the effects are: Frame, Lines, Flip, Turn, Zoom3D, Twist Random, and None. None is normally set in the configuration file, in-case FvwmAnimate is started automatically, but an individual user doesn't want it running.

*FvwmAnimate: Stop
Tells FvwmAnimate to stop.

*FvwmAnimate: Save
Tells FvwmAnimate to save the current configuration in a file named ".FvwmAnimate" in the users home directory. This same file is read automatically by FvwmAnimate during startup.

  
COMMANDS
FvwmAnimate can be asked to produce an animation thru the "SendToModule" command. The format of the command is:
SendToModule FvwmAnimate animate sx sy sw sh dx dy dw dh


The second word must match the name FvwmAnimate is started with. The 8 fields after animate must be numbers. The first 4 are for the source (or starting) location of the animation. The last 4 are for the destination of the animation. The 2 pairs of 4 numbers, represent rectangles. The first 2 numbers are the x and y location of the upper right corner. The next 2 numbers are the width and height. One or more spaces can separate the fields in the command.
Modules can use the "SendToModule" command to animate "NoIcon" windows, or you can think up your own ways to have all kinds of fun with this command.

Additional available commands are: pause, play, push, pop and reset. These may be space separated.

pause causes a module to not temporarily produce any animations. play causes a module to produce an animation again. push stores the current playing state for a future and pop restores it. reset removes all stored states and sets playing on.

Suppose, we don't want to wait for all 40 xterms to be animated:

SendToModule FvwmAnimate pause
All (XTerm) Iconify on


And if we don't want to damage the current playing state, then:
SendToModule FvwmAnimate push pause
All (XTerm) Iconify on
SendToModule FvwmAnimate pop



ORIGIN
FvwmAnimate is based on the Animate module from Afterstep 1.5pre6. Porting to fvwm and lots of other changes were done by Dan Espen <[email protected]>. Below are the original author and acknowledgments.

AUTHOR
Alfredo Kengi Kojima <[email protected]>

ACKNOWLEDGMENTS
These people have contributed to FvwmAnimate:

Kaj Groner <[email protected]>
Twisty iconification, configuration file parsing, man page.

Frank Scheelen <[email protected]>
发表于 2004-5-5 16:59:57 | 显示全部楼层
不是有人承揽这个项目了吗?只是一直停滞不前。
http://people.freebsdchina.org/million/fvwm/fvwm.html
http://sf.linuxforum.net/projects/fvwm-i18n
联系人:
gnuisv (at) hotmail.com
回复

使用道具 举报

发表于 2004-5-20 01:31:28 | 显示全部楼层
强人啊。
上次帮师兄翻译一堆文档,眼睛都花了。
今天毕业设计又要翻译5000字,郁闷啊。
回复

使用道具 举报

发表于 2004-6-3 22:11:27 | 显示全部楼层
我想FVWM本来就是i18n的,不必什么“汉化”的啊

就是相关的资料少了一点,当初我就是黑箱操作摸着石头过河的
回复

使用道具 举报

发表于 2004-6-18 10:18:24 | 显示全部楼层
我靠!兄弟,我服了你了   
回复

使用道具 举报

发表于 2004-6-19 22:03:43 | 显示全部楼层
AMD-K6 的英语真是牛X。
回复

使用道具 举报

发表于 2004-8-13 18:57:14 | 显示全部楼层
[quote:6a135fec76="KDE"]AMD-K6 的英语真是牛X。[/quote]

兄弟见笑了,我当时也是依照人家的文档“偷来”的。我很早就做了一个fvwm网站,但是很久没有更新了,内容也不怎么的完整。想更新一下,但是本人精力有限,所以请求大家和我一起来写写。 http://baif.51.net/amdk6 谢谢。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 22:14 , Processed in 0.065735 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表