Misplaced Pages

Chinese character description languages

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

Several systems have been proposed for describing the internal structure of Chinese characters , including their strokes, components, and the stroke order , and the location of each in the character's ideal square. This information is useful for identifying variants of characters that are unified into one code point by Unicode and ISO/IEC 10646 , as well as to provide an alternative form of representation for rare characters that do not yet have a standardized encoding in Unicode. Many aim to work for regular script , as well as to provide the character's internal structure which can be used for easier look-up of a character by indexing the character's internal make-up and cross-referencing among similar characters.

#406593

36-648: Character Description Language (CDL) is an XML-based declarative language co-created by Tom Bishop and Richard Cook for the Wenlin Institute . It defines characters by the arrangement of components, which are not required to reflect the semantic or etymological history of the character. In order for a component to fit into the allotted portion of the whole character's square, A set of fewer than 50 strokes allow one to construct approximately 1,000 components, which may in turn describe tens of thousands of characters. Chapter 18 of The Unicode Standard (version 15.0) defines

72-453: A first-class object in the program. Although pure functional languages are non-imperative, they often provide a facility for describing the effect of a function as a series of steps. Other functional languages, such as Lisp , OCaml and Erlang , support a mixture of procedural and functional programming. Some logic programming languages, such as Prolog , and database query languages, such as SQL, while declarative in principle, also support

108-418: A declarative programming style. In logic programming, programs consist of sentences expressed in logical form, and computation uses those sentences to solve problems, which are also expressed in logical form. In a pure functional language , such as Haskell , all functions are without side effects , and state changes are only represented as functions that transform the state, which is explicitly represented as

144-463: A function to output the first n square numbers in Racket can be done accordingly: The map function accepts a function and a list; the output is a list of results of the input function on each element of the input list. ML (1973) stands for "Meta Language." ML is statically typed, and function arguments and return types may be annotated. ML is not as bracket-centric as Lisp , and instead uses

180-464: A goal is a logical consequence of the program, or by showing that the goal is true in a model defined by the program. Prolog computes by reducing goals to subgoals, top-down using backward reasoning , whereas most Datalog systems compute bottom-up using forward reasoning . Answer set programs typically use SAT solvers to generate a model of the program. Models, or mathematical representations, of physical systems may be implemented in computer code that

216-421: A lot of the usability of optimization in real life applications, and is supported by most well-known modelling languages. While algebraic modelling languages were typically isolated, specialized and commercial languages, more recently algebraic modelling languages started to appear in the form of open-source, specialized libraries within a general-purpose language, like Gekko or Pyomo for Python or JuMP for

252-619: A procedural style of programming. Declarative programming is an umbrella term that includes a number of better-known programming paradigms . Constraint programming states relations between variables in the form of constraints that specify the properties of the target solution. The set of constraints is solved by giving a value to each variable so that the solution is consistent with the maximum number of constraints. Constraint programming often complements other paradigms: functional, logical, or even imperative programming. Well-known examples of declarative domain-specific languages (DSLs) include

288-405: A separate area around 1977. Syntactically and semantically , it is a subset of Prolog. But because it does not have compound terms , it is not Turing-complete . Most Datalog systems execute programs bottom-up, using rules to reason forwards , deriving new facts from existing facts, and terminating when there are no new facts that can be derived, or when the derived facts unify with the query. In

324-463: A solution. These algorithms are called solvers and can handle certain kind of mathematical problems like: The core elements of an AML are: Most AML follow certain design principles: Most modeling languages exploit the similarities between structured models and relational databases by providing a database access layer, which enables the modelling system to directly access data from external data sources (e.g. these table handlers for AMPL). With

360-615: A way comparable to the use of subscripts and sets. This is probably the single most notable feature common to all modern AMLs and enabled, in time, a separation between the model structure and its data, and a correspondence between the entities in an MP model and data in relational databases. So, a model could be finally instantiated and solved over different datasets, just by modifying its datasets. The correspondence between modelling entities and relational data models , made then possible to seamlessly generate model instances by fetching data from corporate databases. This feature accounts now for

396-693: A webpage - it specifies neither control flow for rendering a page nor the page's possible interactions with a user . As of 2013 , some software systems combine traditional user-interface markup languages (such as HTML) with declarative markup that defines what (but not how) the back-end server systems should do to support the declared interface. Such systems, typically using a domain-specific XML namespace , may include abstractions of SQL database syntax or parameterized calls to web services using representational state transfer (REST) and SOAP . Functional programming languages such as Haskell , Scheme , and ML evaluate expressions via function application. Unlike

SECTION 10

#1732868559407

432-484: A wider variety of syntax to codify the relationship between code elements, rather than appealing to list ordering and nesting to express everything. The following is an application of times_10 : It returns "20 : int", that is, 20 , a value of type int . Like Lisp , ML is tailored to process lists, though all elements of a list must be the same type. Prolog (1972) stands for "PROgramming in LOGic." It

468-524: Is capable of converting KanjiVG's database to its own extended IDS format, or of searching EIDS files generated by the related Tsukurimashou font family. Declarative language In computer science , declarative programming is a programming paradigm —a style of building the structure and elements of computer programs—that expresses the logic of a computation without describing its control flow . Many languages that apply this style attempt to minimize or eliminate side effects by describing what

504-407: Is declarative. The code contains a number of equations, not imperative assignments, that describe ("declare") the behavioral relationships. When a model is expressed in this formalism, a computer is able to perform algebraic manipulations to best formulate the solution algorithm. The mathematical causality is typically imposed at the boundaries of the physical system, while the behavioral description of

540-488: Is for dictionary lookup purposes, as a rough input method for queries. These sequences can be rendered either by keeping the individual characters separately or by parsing the Ideographic Description Sequence and drawing the ideograph so described. They do not, by themselves, provide unambiguous rendering for all characters. For instance, the sequence ⿱十一 represents both ⼟   'EARTH' with

576-594: Is not officially an ideographic description character, but is sometimes used in ideographic description sequences. These sequences are useful in describing to the reader a character that is not directly printable, either because it is absent in a given font, or is absent from the Unicode standard altogether. For example, the sawndip character [REDACTED] encoded in CJK Unified Ideographs Extension F as U+2DA21 𭨡 can be described as ⿰書史 . Another use

612-485: Is often defined as any style of programming that is not imperative. A number of other common definitions attempt to define it by simply contrasting it with imperative programming. For example: These definitions overlap substantially. Declarative programming is a non-imperative style of programming in which programs describe their desired results without explicitly listing commands or steps that must be performed. Functional and logic programming languages are characterized by

648-556: Is the similarity of their syntax to the mathematical notation of optimization problems. This allows for a very concise and readable definition of problems in the domain of optimization, which is supported by certain language elements like sets, indices, algebraic expressions, powerful sparse index and data handling variables, constraints with arbitrary names. The algebraic formulation of a model does not contain any hints how to process it. An AML does not solve those problems directly; instead, it calls appropriate external algorithms to obtain

684-637: The DPLL algorithm to generate one or more models of the program. Its applications are oriented towards solving difficult search problems and knowledge representation . Algebraic modeling language Algebraic modeling languages ( AML ) are high-level computer programming languages for describing and solving high complexity problems for large scale mathematical computation (i.e. large scale optimization type problems). One particular advantage of some algebraic modeling languages like AIMMS , AMPL , GAMS , Gekko , MathProg , Mosel , and OPL

720-440: The factorial function can be defined as follows: This defines the factorial function using its recursive definition. In contrast, it is more typical to define a procedure for an imperative language. In lisps and lambda calculus, functions are generally first-class citizens . Loosely, this means that functions can be inputs and outputs for other functions. This can simplify the definition of some functions. For example, writing

756-638: The yacc parser generator input language, QML , the Make build specification language, Puppet 's configuration management language, regular expressions , Datalog , answer set programming and a subset of SQL (SELECT queries, for example). DSLs have the advantage of being useful while not necessarily needing to be Turing-complete , which makes it easier for a language to be purely declarative. Many markup languages such as HTML , MXML , XAML , XSLT or other user-interface markup languages are often declarative. HTML, for example, only describes what should appear on

SECTION 20

#1732868559407

792-445: The "Ideographic Description Sequences" (IDS) syntax used to describe characters in featural terms, by arrangements of components with code points. Sixteen special characters in the range U+2FF0..U+2FFF act as prefix operators to combine other characters or sequences to form larger characters. Two additional ideographic description characters are scattered in other Unicode blocks. U+303E 〾 IDEOGRAPHIC VARIATION INDICATOR

828-568: The ML and Lisp families, are not purely functional , and thus allow the introduction of stateful effects in programs. Makefiles, for example, specify dependencies in a declarative fashion, but include an imperative list of actions to take as well. Similarly, yacc specifies a context free grammar declaratively, but includes code snippets from a host language, which is usually imperative (such as C ). Logic programming languages, such as Prolog , Datalog and answer set programming , compute by proving that

864-487: The above example, a typical Datalog system would first derive the new facts: Using these facts, it would then derive the additional fact: It would then terminate, both because no new, additional facts can be derived, and because the newly derived fact unifies with the query Datalog has been applied to such problems as data integration , information extraction , networking , security , cloud computing and machine learning . Answer set programming (ASP) evolved in

900-543: The answer substitution X = tom . Prolog executes programs top-down, using SLD resolution to reason backwards , reducing goals to subgoals. In this example, it uses the last rule of the program to reduce the goal of answering the query eat ( X , jerry ) to the subgoals of first finding an X such that big ( X ) holds and then of showing that small ( jerry ) holds. It repeatedly uses rules to further reduce subgoals to other subgoals, until it eventually succeeds in unifying all subgoals with facts in

936-402: The late 1990s, based on the stable model (answer set) semantics of logic programming. Like Datalog, it is a subset of Prolog; and, because it does not have compound terms, it is not Turing-complete. Most implementations of ASP execute a program by first "grounding" the program, replacing all variables in rules by constants in all possible ways, and then using a propositional SAT solver, such as

972-424: The middle bar being narrower, and ⼠   'SCHOLAR' with the middle bar being wider. Unicode's specification for these sequences is based on the characters and syntax of the earlier GBK encoding . Additional symbols are later encoded to fill in the missing combinations. The IDSgrep free software package by Matthew Skala extends Unicode's IDS syntax to include additional features for dictionary lookup; it

1008-508: The modern modelling languages is found in UIMP, where the structure of the mathematical programming models taken from real life is analyzed for the first time, to highlight the natural grouping of variables and constraints arising from such models. This led to data-structure features, which supported structured modelling; in this paradigm, all the input and output tables, together with the decision variables, are defined in terms of these structures, in

1044-851: The program must accomplish in terms of the problem domain , rather than describing how to accomplish it as a sequence of the programming language primitives (the how being left up to the language's implementation ). This is in contrast with imperative programming , which implements algorithms in explicit steps. Declarative programming often considers programs as theories of a formal logic , and computations as deductions in that logic space. Declarative programming may greatly simplify writing parallel programs . Common declarative languages include those of database query languages (e.g., SQL , XQuery ), regular expressions , logic programming (e.g. Prolog , Datalog , answer set programming ), functional programming , configuration management , and algebraic modeling systems. Declarative programming

1080-463: The program. This backward reasoning, goal-reduction strategy treats rules in logic programs as procedures, and makes Prolog both a declarative and procedural programming language. The broad range of Prolog applications is highlighted in the Year of Prolog Book, celebrating the 50 year anniversary of Prolog. The origins of Datalog date back to the beginning of logic programming, but it was identified as

1116-483: The refinement of analytic technologies applied to business processes, optimization models are becoming an integral part of decision support systems ; optimization models can be structured and layered to represent and support complex business processes. In such applications, the multi-dimensional data structure typical of OLAP systems can be directly mapped to the optimization models and typical MDDB operations can be translated into aggregation and disaggregation operations on

Chinese character description languages - Misplaced Pages Continue

1152-409: The related but more imperative paradigm of procedural programming , functional programming places little emphasis on explicit sequencing. Instead, computations are characterised by various kinds of recursive higher-order function application and composition , and as such can be regarded simply as a set of mappings between domains and codomains . Many functional languages, including most of those in

1188-449: The system itself is declarative or acausal. Declarative modeling languages and environments include Analytica , Modelica and Simile . Lisp is a family of programming languages loosely inspired by mathematical notation and Alonzo Church 's lambda calculus . Some dialects, such as Common Lisp , are primarily imperative but support functional programming. Others, such as Scheme , are designed for functional programming. In Scheme,

1224-409: The underlying model Algebraic modelling languages find their roots in matrix-generator and report-writer programs (MGRW), developed in the late seventies. Some of these are MAGEN, MGRW (IBM), GAMMA.3, DATAFORM and MGG/RWG. These systems simplified the communication of problem instances to the solution algorithms and the generation of a readable report of the results. An early matrix-generator for LP

1260-492: Was developed around 1969 at the Mathematisch Centrum (now CWI), Amsterdam. Its syntax was very close to the usual mathematical notation, using subscripts en sigmas. Input for the generator consisted of separate sections for the model and the data. It found users at universities and in industry. The main industrial user was the steel maker Hoogovens (now Tata Steel) where it was used for nearly 25 years. A big step towards

1296-436: Was developed for natural language question answering , using SL resolution both to deduce answers to queries and to parse and generate natural language sentences. The building blocks of a Prolog program are facts and rules . Here is a simple example: Given this program, the query eat ( tom , jerry ) succeeds, while eat ( jerry , tom ) fails. Moreover, the query eat ( X , jerry ) succeeds with

#406593