###
计算机系统应用英文版:2017,26(4):246-251
本文二维码信息
码上扫一扫!
双向文本元素在SVG中的显示技术
(SAP中国研究院 商务智能部, 上海 201203)
Displaying Technology of Bidirectional Text Element in SVG
(Department of Business Intelligence of SAP Labs China, Shanghai 201203, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1172次   下载 2012
Received:July 20, 2016    Revised:September 08, 2016
中文摘要: 双向文本在SVG中的显示是使用Unicode双向算法实现的,然而在很多情况下双向算法无法自动生成符合语义的正确显示结果,需要进行额外的设置. 通过分析双向算法的基本原理,深入探讨了双向文本显示中容易出现问题的几个方面,包括文本方向的判定,特殊字符显示位置,文本元素中跨越tspan元素的文字重排,以及设置显示方向之后位置的变化. 针对各个问题的具体情况和不同浏览器的差异,使用SVG中的特定属性给出了进行正确设置的方式.
中文关键词: 双向算法  SVG  从右到左  Unicode  可视化
Abstract:The displaying of bidirectional text in SVG is implemented by Unicode bidirectional algorithm, but bidirectional algorithm cannot automatically generate correct results to be displayed in line with semantics in many cases, so additional settings are required. By analyzing the basic principle of bidirectional algorithm, this paper discusses several aspects of bidirectional text display prone to occur, which includes text direction determining, display positions of special characters, text reordering across tspan elements in text elements, and position changes after display direction setting. According to specific circumstances of each issue and individual differences in different browsers, figure out ways to set correctly by using specific attributes in SVG.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
刘旭.双向文本元素在SVG中的显示技术.计算机系统应用,2017,26(4):246-251
LIU Xu.Displaying Technology of Bidirectional Text Element in SVG.COMPUTER SYSTEMS APPLICATIONS,2017,26(4):246-251