双向文本元素在SVG中的显示技术
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:


Displaying Technology of Bidirectional Text Element in SVG
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    双向文本在SVG中的显示是使用Unicode双向算法实现的,然而在很多情况下双向算法无法自动生成符合语义的正确显示结果,需要进行额外的设置. 通过分析双向算法的基本原理,深入探讨了双向文本显示中容易出现问题的几个方面,包括文本方向的判定,特殊字符显示位置,文本元素中跨越tspan元素的文字重排,以及设置显示方向之后位置的变化. 针对各个问题的具体情况和不同浏览器的差异,使用SVG中的特定属性给出了进行正确设置的方式.

    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

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2016-07-20
  • 最后修改日期:2016-09-08
  • 录用日期:
  • 在线发布日期: 2017-04-11
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号