diff --git a/basis/colors/constants/constants-docs.factor b/basis/colors/constants/constants-docs.factor index 633bd20ed2..49d6fce3a1 100644 --- a/basis/colors/constants/constants-docs.factor +++ b/basis/colors/constants/constants-docs.factor @@ -2,7 +2,7 @@ IN: colors.constants USING: help.markup help.syntax strings colors ; HELP: named-color -{ $values { "string" string } { "color" color } } +{ $values { "name" string } { "color" color } } { $description "Outputs a named color from the " { $snippet "rgb.txt" } " database." } { $notes "In most cases, " { $link POSTPONE: COLOR: } " should be used instead." } { $errors "Throws an error if the color is not listed in " { $snippet "rgb.txt" } "." } ; diff --git a/basis/colors/constants/constants.factor b/basis/colors/constants/constants.factor index 0e5610a144..91621c110b 100644 --- a/basis/colors/constants/constants.factor +++ b/basis/colors/constants/constants.factor @@ -27,7 +27,7 @@ PRIVATE> ERROR: no-such-color name ; -: named-color ( name -- rgb ) +: named-color ( name -- color ) dup rgb.txt at [ ] [ no-such-color ] ?if ; : COLOR: scan named-color parsed ; parsing \ No newline at end of file diff --git a/basis/core-foundation/attributed-strings/tags.txt b/basis/core-foundation/attributed-strings/tags.txt new file mode 100644 index 0000000000..2320bdd648 --- /dev/null +++ b/basis/core-foundation/attributed-strings/tags.txt @@ -0,0 +1,2 @@ +unportable +bindings diff --git a/basis/delegate/delegate-docs.factor b/basis/delegate/delegate-docs.factor index 9456941880..42b727852e 100644 --- a/basis/delegate/delegate-docs.factor +++ b/basis/delegate/delegate-docs.factor @@ -13,8 +13,8 @@ HELP: PROTOCOL: { define-protocol POSTPONE: PROTOCOL: } related-words HELP: define-consult -{ $values { "class" "a class" } { "group" "a protocol, generic word or tuple class" } { "quot" "a quotation" } } -{ $description "Defines a class to consult, using the given quotation, on the generic words contained in the group." } +{ $values { "consultation" consultation } } +{ $description "Defines a class to consult, using the quotation, on the generic words contained in the group." } { $notes "Usually, " { $link POSTPONE: CONSULT: } " should be used instead. This is only for runtime use." } ; HELP: CONSULT: diff --git a/basis/io/encodings/euc-kr/euc-kr-docs.factor b/basis/io/encodings/euc-kr/euc-kr-docs.factor index 5e109f3536..60cd41ac57 100644 --- a/basis/io/encodings/euc-kr/euc-kr-docs.factor +++ b/basis/io/encodings/euc-kr/euc-kr-docs.factor @@ -3,8 +3,11 @@ USING: help.syntax help.markup ; IN: io.encodings.euc-kr -ABOUT: euc-kr - HELP: euc-kr -{ $class-description "This encoding class implements Microsoft's code page #949 encoding, also called Unified Hangul Code or ks_c_5601-1987, UHC. CP949 is extended version of EUC-KR and downward-compatibility to EUC-KR, in practice." } +{ $class-description "This encoding class implements Microsoft's CP949 encoding, also called Unified Hangul Code or ks_c_5601-1987, UHC. CP949 is extended version of EUC-KR and downward-compatible with EUC-KR in practice." } { $see-also "encodings-introduction" } ; + +ARTICLE: "io.encodings.euc-kr" "EUC-KR encoding" +{ $subsection euc-kr } ; + +ABOUT: "io.encodings.euc-kr" \ No newline at end of file diff --git a/basis/io/encodings/johab/johab-docs.factor b/basis/io/encodings/johab/johab-docs.factor index 1d707e0f7d..d2eac30b25 100644 --- a/basis/io/encodings/johab/johab-docs.factor +++ b/basis/io/encodings/johab/johab-docs.factor @@ -3,7 +3,10 @@ USING: help.syntax help.markup ; IN: io.encodings.johab -ABOUT: johab - HELP: johab { $class-description "Korean Johab encoding (KSC5601-1992). This encoding is not commonly used anymore." } ; + +ARTICLE: "io.encodings.johab" "Korean Johab encoding" +{ $subsection johab } ; + +ABOUT: "io.encodings.johab" \ No newline at end of file diff --git a/basis/models/models-docs.factor b/basis/models/models-docs.factor index 4db71c4595..82dd035467 100644 --- a/basis/models/models-docs.factor +++ b/basis/models/models-docs.factor @@ -137,7 +137,7 @@ $nl { $subsection "models-delay" } ; ARTICLE: "models-impl" "Implementing models" -"New types of models can be defined, for example see " { $vocab-link "models.filter" } "." +"New types of models can be defined, for example see " { $vocab-link "models.arrow" } "." $nl "Models can execute hooks when activated:" { $subsection model-activated } diff --git a/basis/ui/gestures/gestures.factor b/basis/ui/gestures/gestures.factor index 744cb1dc50..2e52a2fe1e 100644 --- a/basis/ui/gestures/gestures.factor +++ b/basis/ui/gestures/gestures.factor @@ -306,12 +306,18 @@ M: macosx modifiers>string M: object modifiers>string [ name>> ] map "" join ; +HOOK: keysym>string os ( keysym -- string ) + +M: macosx keysym>string >upper ; + +M: object keysym>string ; + M: key-down gesture>string [ mods>> ] [ sym>> ] bi { { [ dup { [ length 1 = ] [ first LETTER? ] } 1&& ] [ [ S+ prefix ] dip ] } { [ dup " " = ] [ drop "SPACE" ] } - [ >upper ] + [ keysym>string ] } cond [ modifiers>string ] dip append ; diff --git a/basis/windows/com/com-docs.factor b/basis/windows/com/com-docs.factor index 8c7584828f..3a7b7272d7 100644 --- a/basis/windows/com/com-docs.factor +++ b/basis/windows/com/com-docs.factor @@ -15,11 +15,11 @@ HELP: com-release { $description "A small wrapper around " { $link IUnknown::Release } ". Decrements the reference count on " { $snippet "interface" } ", releasing the underlying object if the reference count has reached zero." } ; HELP: &com-release -{ $values { "interface" "Pointer to a COM interface implementing " { $snippet "IUnknown" } } } +{ $values { "alien" "pointer to a COM interface implementing " { $snippet "IUnknown" } } } { $description "Marks the given COM interface for unconditional release via " { $link com-release } " at the end of the enclosing " { $link with-destructors } " scope." } ; HELP: |com-release -{ $values { "interface" "Pointer to a COM interface implementing " { $snippet "IUnknown" } } } +{ $values { "alien" "pointer to a COM interface implementing " { $snippet "IUnknown" } } } { $description "Marks the given COM interface for release via " { $link com-release } " in the event of an error at the end of the enclosing " { $link with-destructors } " scope." } ; { com-release &com-release |com-release } related-words