<commit_before>! Copyright (C) 2017 Pi.
! See http://factorcode.org/license.txt for BSD license.
USING: help.markup help.syntax help.topics strings ;
IN: unicode.control-pictures

HELP: control-pictures
{ $values
    { "string" string }
}
{ $description "Transforms C0 control characters into their corresponding Control Picture block codepoints." } ;

ARTICLE: "unicode.control-pictures" "Control Pictures"
"The " { $vocab-link "unicode.control-pictures" } " vocabulary provides a utility word " { $link control-pictures } " for transforming characters in the nonprintable ASCII C0 block to their representations in the Control Pictures block. It has no effect on any other characters."
;

ABOUT: "unicode.control-pictures"<commit_msg>Improve documentation by linking to Unicode charts for the relevant blocks<commit_after>! Copyright (C) 2017 Pi.
! See http://factorcode.org/license.txt for BSD license.
USING: assocs hashtables help.markup help.stylesheet help.syntax
help.topics io.styles kernel namespaces present sequences
strings urls ;
IN: unicode.control-pictures

: $url-to ( children -- )
    first2 >url [
        dup present href associate url-style get assoc-union
        [ write-object ] with-style
    ] ($span) ;

HELP: control-pictures
{ $values
    { "string" string }
}
{ $description "Transforms C0 control characters into their corresponding Control Picture block codepoints." } ;

ARTICLE: "unicode.control-pictures" "Control Pictures"
"The " { $vocab-link "unicode.control-pictures" } " vocabulary provides a utility word " { $link control-pictures } " for transforming characters in the nonprintable " { $url-to "ASCII C0 block" "http://www.unicode.org/charts/PDF/U0000.pdf" } " to their representations in the " { $url-to "Control Pictures" "http://www.unicode.org/charts/PDF/U2400.pdf" } " block. It has no effect on any other characters."
;

ABOUT: "unicode.control-pictures"
{'fraction_non_alphanumeric': 0.10714285714285714, 'fraction_numerical': 0.011029411764705883, 'mean_word_length': 4.396600566572238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5393761', 'n_tokens_mistral': 594, 'n_tokens_neox': 547, 'n_words': 186}