{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3415","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3415/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3415/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3415/events","html_url":"https://github.com/asciidoctor/asciidoctor/issues/3415","id":493156278,"node_id":"MDU6SXNzdWU0OTMxNTYyNzg=","number":3415,"title":"Add # Symbol to Predefined Attributes for Character Replacements","user":{"login":"tajmone","id":11064292,"node_id":"MDQ6VXNlcjExMDY0Mjky","avatar_url":"https://avatars2.githubusercontent.com/u/11064292?v=4","gravatar_id":"","url":"https://api.github.com/users/tajmone","html_url":"https://github.com/tajmone","followers_url":"https://api.github.com/users/tajmone/followers","following_url":"https://api.github.com/users/tajmone/following{/other_user}","gists_url":"https://api.github.com/users/tajmone/gists{/gist_id}","starred_url":"https://api.github.com/users/tajmone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tajmone/subscriptions","organizations_url":"https://api.github.com/users/tajmone/orgs","repos_url":"https://api.github.com/users/tajmone/repos","events_url":"https://api.github.com/users/tajmone/events{/privacy}","received_events_url":"https://api.github.com/users/tajmone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2019-09-13T06:23:17Z","updated_at":"2019-09-20T11:26:18Z","closed_at":null,"author_association":"NONE","body":"# Feature Request\r\n\r\nPlease, add the hash symbol (`#`) to the list of [predefined attributes for character replacements], for it would be useful to be able to use it inside inline-code like:\r\n\r\n```asciidoc\r\nuse the `{hash}include` directive.\r\n```\r\n\r\ninstead of:\r\n\r\n```asciidoc\r\nuse the `#include` directive.\r\n```\r\n\r\nSince this symbol is [called with various names]  (_number sign_, _hash_, _pound sign_ and _sharp_), it might be worthy assigning multiple aliases to it:\r\n\r\n- `{hash}`\r\n- `{num}`\r\n\r\n# Rationale\r\n\r\nInside in-line code and other verbatim blocks, it's not possible to use the XML Entity for the hash symbol (`&num;`) for it would be treated literally.\r\n\r\nMany AsciiDoc editor syntaxes tend to break up when they encounter the `#` symbol, interpreting it as a [custom styling delimiters], and keep waiting for the next `#` to end the current state of parsing.\r\n\r\nFor the same reason, using a predefined attribute is preferrable for editing reasons too, for it makes it easier to carry out search-&-replace operations in the document sources, separately targetting occurences of the symbol and styling delimiters.\r\n\r\n<!-----------------------------------------------------------------------------\r\n                               REFERENCE LINKS                                \r\n------------------------------------------------------------------------------>\r\n\r\n[predefined attributes for character replacements]: https://asciidoctor.org/docs/user-manual/#charref-attributes\r\n[custom styling delimiters]: https://asciidoctor.org/docs/user-manual/#custom-styling-with-attributes\r\n[called with various names]: https://en.wikipedia.org/wiki/Number_sign#Other_names_in_English \"See Wikipedia for the various names of the '#' symbol\"\r\n\r\n<!-- EOF -->\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/comments/533515089","html_url":"https://github.com/asciidoctor/asciidoctor/issues/3415#issuecomment-533515089","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3415","id":533515089,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMzUxNTA4OQ==","user":{"login":"tajmone","id":11064292,"node_id":"MDQ6VXNlcjExMDY0Mjky","avatar_url":"https://avatars2.githubusercontent.com/u/11064292?v=4","gravatar_id":"","url":"https://api.github.com/users/tajmone","html_url":"https://github.com/tajmone","followers_url":"https://api.github.com/users/tajmone/followers","following_url":"https://api.github.com/users/tajmone/following{/other_user}","gists_url":"https://api.github.com/users/tajmone/gists{/gist_id}","starred_url":"https://api.github.com/users/tajmone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tajmone/subscriptions","organizations_url":"https://api.github.com/users/tajmone/orgs","repos_url":"https://api.github.com/users/tajmone/repos","events_url":"https://api.github.com/users/tajmone/events{/privacy}","received_events_url":"https://api.github.com/users/tajmone/received_events","type":"User","site_admin":false},"created_at":"2019-09-20T11:26:18Z","updated_at":"2019-09-20T11:26:18Z","author_association":"NONE","body":"> Note, `#` as \"pound\" is the weight, not the currency.\r\n\r\nOriginally, the Sterling was equal to a pound of silver, hence the name \"pound Sterling\". Now the £ currency is minted out of vile metals, or even paper, which of course has no counterpart in silver weight nor intrinsic value except mutual consensus. But the pound as weight remains the same, although I've never seen the `#` symbol used for weights, but maybe it was used so in the past.\r\n\r\nDefinitely, `#` as \"hash\" seems to be a late name linked to cryptography hash and salt, and although famous among computer programmers it's not the oldest name for the symbol.\r\n\r\nThe XSL named entity for `#` is `&num;`, which brings us back to the typographical name of the symbol. Other names are often misnomers referring to similar (but not typographically correct) symbols dating back to the Ascii era when substitution by similarity was needed.\r\n"}}
{"actor":{"display_login":"tajmone"}}