Can't use semicolons (and therefore html entities) in per-style attribution

已关闭
#33 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp
领域
backend

调研方向

比较 mod_tile.h 和 renderd.conf 中的 attribution 定义,然后跟踪每个 style 的值在出现在 TileJSON 输出之前是如何被解析的。确定分号和 HTML 实体应如何表示,以免被当作注释处理。当每个 style 的 attribution 能够可靠地接受这些值,并且所选的配置方式得到验证时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

The default attribution can be interpreted as html, e.g. when shown in tilejson output

https://github.com/openstreetmap/mod_tile/blob/master/mod_tile.h#L32

It can be overwritten per-style in renderd.conf

https://github.com/openstreetmap/mod_tile/blob/master/renderd.conf#L38

However, this doesn't work if you have any semicolons in your override string, e.g. for ampersands, copyright entities or similar. The role of semicolons in .ini files seems to be implementation-specific as to whether they are a comment delineator only at the start of the line, only when preceded by whitespace, or at any point during the line. Additionally, escape sequences (typically backslash, e.g. ; ) are implementation-specific. At the moment, we have an anywhere-no-escape parser.

Perhaps we need a different ini parser, or a different configuration file format.

主要语言
C++
星标
318
派生
200
平均合并
3 天 18 小时
30 天内合并 PR
35

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openstreetmap/mod_tile 的其他 Issue

查看 openstreetmap/mod_tile 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。