Function: orgtbl-to-unicode

orgtbl-to-unicode is a byte-compiled function defined in org-table.el.gz.

Signature

(orgtbl-to-unicode TABLE PARAMS)

Documentation

Convert the orgtbl-mode(var)/orgtbl-mode(fun) TABLE into a table with unicode characters.

TABLE is a list, each entry either the symbol hline for a horizontal separator line, or a list of fields for that line. PARAMS is a property list of parameters that can influence the conversion. All parameters from orgtbl-to-generic are supported. It is also possible to use the following ones:

:ascii-art

  When non-nil, use "ascii-art-to-unicode" package to translate
  the table. You can download it here:
  https://gnuvola.org/software/j/aa2u/ascii-art-to-unicode.el.

:narrow

  When non-nil, narrow columns width than provided width cookie,
  using "=>" as an ellipsis, just like in an Org mode buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-table.el.gz
(defun orgtbl-to-unicode (table params)
  "Convert the `orgtbl-mode' TABLE into a table with unicode characters.

TABLE is a list, each entry either the symbol `hline' for
a horizontal separator line, or a list of fields for that line.
PARAMS is a property list of parameters that can influence the
conversion.  All parameters from `orgtbl-to-generic' are
supported.  It is also possible to use the following ones:

:ascii-art

  When non-nil, use \"ascii-art-to-unicode\" package to translate
  the table.  You can download it here:
  https://gnuvola.org/software/j/aa2u/ascii-art-to-unicode.el.

:narrow

  When non-nil, narrow columns width than provided width cookie,
  using \"=>\" as an ellipsis, just like in an Org mode buffer."
  (require 'ox-ascii)
  (orgtbl-to-generic
   table
   (org-combine-plists
    (list :backend 'ascii
	  :ascii-charset 'utf-8
	  :ascii-table-widen-columns (not (plist-get params :narrow))
	  :ascii-table-use-ascii-art (plist-get params :ascii-art))
    params)))