diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-01-03 10:07:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 10:07:43 +0000 |
commit | 5841a97500bffa5a2b9eed2eb41025f5587790ba (patch) | |
tree | 7df7a9a5612e134080f67ff8b4db5b795f4a26b0 /src | |
parent | 7b76a3e7992bffca758b2e52548d2f483a45eaf6 (diff) | |
download | rneovim-5841a97500bffa5a2b9eed2eb41025f5587790ba.tar.gz rneovim-5841a97500bffa5a2b9eed2eb41025f5587790ba.tar.bz2 rneovim-5841a97500bffa5a2b9eed2eb41025f5587790ba.zip |
feat!: remove hardcopy
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'src')
45 files changed, 2 insertions, 7000 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 8214a1c916..8cb4a723e7 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -672,25 +672,6 @@ int eval_charconvert(const char *const enc_from, const char *const enc_to, return OK; } -int eval_printexpr(const char *const fname, const char *const args) -{ - bool err = false; - - set_vim_var_string(VV_FNAME_IN, fname, -1); - set_vim_var_string(VV_CMDARG, args, -1); - if (eval_to_bool(p_pexpr, &err, NULL, false)) { - err = true; - } - set_vim_var_string(VV_FNAME_IN, NULL, -1); - set_vim_var_string(VV_CMDARG, NULL, -1); - - if (err) { - os_remove(fname); - return FAIL; - } - return OK; -} - void eval_diff(const char *const origfile, const char *const newfile, const char *const outfile) { bool err = false; diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index d2bbdc7a96..77e8e23ab6 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -3113,8 +3113,6 @@ static void f_has(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) "packages", "path_extra", "persistent_undo", - "postscript", - "printer", "profile", "pythonx", "reltime", diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 6911d318cc..68db03bd7d 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -1105,12 +1105,6 @@ module.cmds = { func='ex_helptags', }, { - command='hardcopy', - flags=bit.bor(RANGE, COUNT, EXTRA, TRLBAR, DFLALL, BANG), - addr_type='ADDR_LINES', - func='ex_hardcopy', - }, - { command='highlight', flags=bit.bor(BANG, EXTRA, TRLBAR, SBOXOK, CMDWIN, LOCK_OK), addr_type='ADDR_NONE', diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index c072977a53..6c38fd962a 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -3784,7 +3784,6 @@ int expand_filename(exarg_T *eap, char **cmdlinep, char **errormsgp) && eap->cmdidx != CMD_bang && eap->cmdidx != CMD_grep && eap->cmdidx != CMD_grepadd - && eap->cmdidx != CMD_hardcopy && eap->cmdidx != CMD_lgrep && eap->cmdidx != CMD_lgrepadd && eap->cmdidx != CMD_lmake diff --git a/src/nvim/generators/gen_ex_cmds.lua b/src/nvim/generators/gen_ex_cmds.lua index 3a022d45c8..0c1051b04e 100644 --- a/src/nvim/generators/gen_ex_cmds.lua +++ b/src/nvim/generators/gen_ex_cmds.lua @@ -64,7 +64,6 @@ defsfile:write(string.format([[ #include "nvim/ex_docmd.h" #include "nvim/ex_eval.h" #include "nvim/ex_session.h" -#include "nvim/hardcopy.h" #include "nvim/help.h" #include "nvim/indent.h" #include "nvim/locale.h" diff --git a/src/nvim/globals.h b/src/nvim/globals.h index cce74df9a8..9c4df59819 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -841,9 +841,6 @@ EXTERN int stl_syntax INIT(= 0); // don't use 'hlsearch' temporarily EXTERN bool no_hlsearch INIT(= false); -// Page number used for %N in 'pageheader' and 'guitablabel'. -EXTERN linenr_T printer_page_num; - EXTERN bool typebuf_was_filled INIT(= false); // received text from client // or from feedkeys() diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c deleted file mode 100644 index 0240761483..0000000000 --- a/src/nvim/hardcopy.c +++ /dev/null @@ -1,3077 +0,0 @@ -// This is an open source non-commercial project. Dear PVS-Studio, please check -// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - -// hardcopy.c: printing to paper - -#include <assert.h> -#include <ctype.h> -#include <stdbool.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -#include "nvim/ascii.h" -#include "nvim/buffer.h" -#include "nvim/charset.h" -#include "nvim/eval.h" -#include "nvim/ex_cmds_defs.h" -#include "nvim/ex_docmd.h" -#include "nvim/fileio.h" -#include "nvim/garray.h" -#include "nvim/gettext.h" -#include "nvim/globals.h" -#include "nvim/grid.h" -#include "nvim/hardcopy.h" -#include "nvim/highlight_defs.h" -#include "nvim/highlight_group.h" -#include "nvim/indent.h" -#include "nvim/macros.h" -#include "nvim/mbyte.h" -#include "nvim/memline.h" -#include "nvim/memory.h" -#include "nvim/message.h" -#include "nvim/option.h" -#include "nvim/os/input.h" -#include "nvim/os/os.h" -#include "nvim/os/time.h" -#include "nvim/path.h" -#include "nvim/pos.h" -#include "nvim/runtime.h" -#include "nvim/statusline.h" -#include "nvim/strings.h" -#include "nvim/syntax.h" -#include "nvim/ui.h" -#include "nvim/version.h" -#include "nvim/vim.h" - -// To implement printing on a platform, the following functions must be -// defined: -// -// int mch_print_init(prt_settings_T *psettings, char_u *jobname, int forceit) -// Called once. Code should display printer dialogue (if appropriate) and -// determine printer font and margin settings. Reset has_color if the printer -// doesn't support colors at all. -// Returns FAIL to abort. -// -// int mch_print_begin(prt_settings_T *settings) -// Called to start the print job. -// Return false to abort. -// -// int mch_print_begin_page(char_u *msg) -// Called at the start of each page. -// "msg" indicates the progress of the print job, can be NULL. -// Return false to abort. -// -// int mch_print_end_page() -// Called at the end of each page. -// Return false to abort. -// -// int mch_print_blank_page() -// Called to generate a blank page for collated, duplex, multiple copy -// document. Return false to abort. -// -// void mch_print_end(prt_settings_T *psettings) -// Called at normal end of print job. -// -// void mch_print_cleanup() -// Called if print job ends normally or is abandoned. Free any memory, close -// devices and handles. Also called when mch_print_begin() fails, but not -// when mch_print_init() fails. -// -// void mch_print_set_font(int Bold, int Italic, int Underline); -// Called whenever the font style changes. -// -// void mch_print_set_bg(uint32_t bgcol); -// Called to set the background color for the following text. Parameter is an -// RGB value. -// -// void mch_print_set_fg(uint32_t fgcol); -// Called to set the foreground color for the following text. Parameter is an -// RGB value. -// -// mch_print_start_line(int margin, int page_line) -// Sets the current position at the start of line "page_line". -// If margin is true start in the left margin (for header and line number). -// -// int mch_print_text_out(char_u *p, size_t len); -// Output one character of text p[len] at the current position. -// Return true if there is no room for another character in the same line. -// -// Note that the generic code has no idea of margins. The machine code should -// simply make the page look smaller! The header and the line numbers are -// printed in the margin. - -static option_table_T printer_opts[OPT_PRINT_NUM_OPTIONS] = { - { "top", true, 0, NULL, 0, false }, - { "bottom", true, 0, NULL, 0, false }, - { "left", true, 0, NULL, 0, false }, - { "right", true, 0, NULL, 0, false }, - { "header", true, 0, NULL, 0, false }, - { "syntax", false, 0, NULL, 0, false }, - { "number", false, 0, NULL, 0, false }, - { "wrap", false, 0, NULL, 0, false }, - { "duplex", false, 0, NULL, 0, false }, - { "portrait", false, 0, NULL, 0, false }, - { "paper", false, 0, NULL, 0, false }, - { "collate", false, 0, NULL, 0, false }, - { "jobsplit", false, 0, NULL, 0, false }, - { "formfeed", false, 0, NULL, 0, false }, -}; - -static const uint32_t cterm_color_8[8] = { - 0x000000, 0xff0000, 0x00ff00, 0xffff00, - 0x0000ff, 0xff00ff, 0x00ffff, 0xffffff -}; - -static const uint32_t cterm_color_16[16] = { - 0x000000, 0x0000c0, 0x008000, 0x004080, - 0xc00000, 0xc000c0, 0x808000, 0xc0c0c0, - 0x808080, 0x6060ff, 0x00ff00, 0x00ffff, - 0xff8080, 0xff40ff, 0xffff00, 0xffffff -}; - -static int current_syn_id; - -enum { - PRCOLOR_BLACK = 0, - PRCOLOR_WHITE = 0xffffff, -}; - -static TriState curr_italic; -static TriState curr_bold; -static TriState curr_underline; -static uint32_t curr_bg; -static uint32_t curr_fg; -static int page_count; - -enum { - OPT_MBFONT_USECOURIER = 0, - OPT_MBFONT_ASCII = 1, - OPT_MBFONT_REGULAR = 2, - OPT_MBFONT_BOLD = 3, - OPT_MBFONT_OBLIQUE = 4, - OPT_MBFONT_BOLDOBLIQUE = 5, - OPT_MBFONT_NUM_OPTIONS = 6, -}; - -static option_table_T mbfont_opts[OPT_MBFONT_NUM_OPTIONS] = { - { "c", false, 0, NULL, 0, false }, - { "a", false, 0, NULL, 0, false }, - { "r", false, 0, NULL, 0, false }, - { "b", false, 0, NULL, 0, false }, - { "i", false, 0, NULL, 0, false }, - { "o", false, 0, NULL, 0, false }, -}; - -// These values determine the print position on a page. -typedef struct { - int lead_spaces; // remaining spaces for a TAB - int print_pos; // virtual column for computing TABs - colnr_T column; // byte column - linenr_T file_line; // line nr in the buffer - size_t bytes_printed; // bytes printed so far - int ff; // seen form feed character -} prt_pos_T; - -struct prt_mediasize_S { - char *name; - double width; // width and height in points for portrait - double height; -}; - -// PS font names, must be in Roman, Bold, Italic, Bold-Italic order -struct prt_ps_font_S { - int wx; - int uline_offset; - int uline_width; - int bbox_min_y; - int bbox_max_y; - char *(ps_fontname[4]); -}; - -// Structures to map user named encoding and mapping to PS equivalents for -// building CID font name -struct prt_ps_encoding_S { - char *encoding; - char *cmap_encoding; - int needs_charset; -}; - -struct prt_ps_charset_S { - char *charset; - char *cmap_charset; - int has_charset; -}; - -// Collections of encodings and charsets for multi-byte printing -struct prt_ps_mbfont_S { - int num_encodings; - struct prt_ps_encoding_S *encodings; - int num_charsets; - struct prt_ps_charset_S *charsets; - char *ascii_enc; - char *defcs; -}; - -// Types of PS resource file currently used -typedef enum { - PRT_RESOURCE_TYPE_PROCSET = 0, - PRT_RESOURCE_TYPE_ENCODING = 1, - PRT_RESOURCE_TYPE_CMAP = 2, -} PrtResourceType; - -// String versions of PS resource types -static const char *const prt_resource_types[] = { - [PRT_RESOURCE_TYPE_PROCSET] = "procset", - [PRT_RESOURCE_TYPE_ENCODING] = "encoding", - [PRT_RESOURCE_TYPE_CMAP] = "cmap", -}; - -struct prt_ps_resource_S { - char_u name[64]; - char_u filename[MAXPATHL + 1]; - PrtResourceType type; - char_u title[256]; - char version[256]; -}; - -struct prt_dsc_comment_S { - char *string; - int len; - int type; -}; - -struct prt_dsc_line_S { - int type; - char *string; - int len; -}; - -// Static buffer to read initial comments in a resource file, some can have a -// couple of KB of comments! -#define PRT_FILE_BUFFER_LEN (2048) -struct prt_resfile_buffer_S { - char buffer[PRT_FILE_BUFFER_LEN]; - int len; - int line_start; - int line_end; -}; - -#ifdef INCLUDE_GENERATED_DECLARATIONS -# include "hardcopy.c.generated.h" -#endif - -// Parse 'printoptions' and set the flags in "printer_opts". -// Returns an error message or NULL; -char *parse_printoptions(void) -{ - return parse_list_options(p_popt, printer_opts, OPT_PRINT_NUM_OPTIONS); -} - -// Parse 'printoptions' and set the flags in "printer_opts". -// Returns an error message or NULL; -char *parse_printmbfont(void) -{ - return parse_list_options(p_pmfn, mbfont_opts, OPT_MBFONT_NUM_OPTIONS); -} - -// Parse a list of options in the form -// option:value,option:value,option:value -// -// "value" can start with a number which is parsed out, e.g. margin:12mm -// -// Returns an error message for an illegal option, NULL otherwise. -// Only used for the printer at the moment... -static char *parse_list_options(char *option_str, option_table_T *table, size_t table_size) -{ - option_table_T *old_opts; - char *ret = NULL; - char *stringp; - char *colonp; - char *commap; - char *p; - size_t idx = 0; // init for GCC - int len; - - // Save the old values, so that they can be restored in case of an error. - old_opts = (option_table_T *)xmalloc(sizeof(option_table_T) * table_size); - - for (idx = 0; idx < table_size; idx++) { - old_opts[idx] = table[idx]; - table[idx].present = false; - } - - // Repeat for all comma separated parts. - stringp = option_str; - while (*stringp) { - colonp = vim_strchr(stringp, ':'); - if (colonp == NULL) { - ret = N_("E550: Missing colon"); - break; - } - commap = vim_strchr(stringp, ','); - if (commap == NULL) { - commap = option_str + strlen(option_str); - } - - len = (int)(colonp - stringp); - - for (idx = 0; idx < table_size; idx++) { - if (STRNICMP(stringp, table[idx].name, len) == 0) { - break; - } - } - - if (idx == table_size) { - ret = N_("E551: Illegal component"); - break; - } - - p = colonp + 1; - table[idx].present = true; - - if (table[idx].hasnum) { - if (!ascii_isdigit(*p)) { - ret = N_("E552: digit expected"); - break; - } - - table[idx].number = getdigits_int(&p, false, 0); - } - - table[idx].string = (char_u *)p; - table[idx].strlen = (int)(commap - p); - - stringp = commap; - if (*stringp == ',') { - stringp++; - } - } - - if (ret != NULL) { - // Restore old options in case of error - for (idx = 0; idx < table_size; idx++) { - table[idx] = old_opts[idx]; - } - } - - xfree(old_opts); - return ret; -} - -// If using a dark background, the colors will probably be too bright to show -// up well on white paper, so reduce their brightness. -static uint32_t darken_rgb(uint32_t rgb) -{ - return ((rgb >> 17) << 16) - + (((rgb & 0xff00) >> 9) << 8) - + ((rgb & 0xff) >> 1); -} - -static uint32_t prt_get_term_color(int colorindex) -{ - // TODO(vim): Should check for xterm with 88 or 256 colors. - if (t_colors > 8) { - return cterm_color_16[colorindex % 16]; - } - return cterm_color_8[colorindex % 8]; -} - -static uint32_t prt_get_color(int hl_id, int modec) -{ - int colorindex; - uint32_t fg_color; - - const char *color = highlight_color(hl_id, "fg#", 'g'); - if (color != NULL) { - RgbValue rgb = name_to_color(color, &colorindex); - if (rgb != -1) { - return (uint32_t)rgb; - } - } - - color = highlight_color(hl_id, "fg", modec); - if (color == NULL) { - colorindex = 0; - } else { - colorindex = atoi(color); - } - - if (colorindex >= 0 && colorindex < t_colors) { - fg_color = prt_get_term_color(colorindex); - } else { - fg_color = PRCOLOR_BLACK; - } - - return fg_color; -} - -static void prt_get_attr(int hl_id, prt_text_attr_T *pattr, int modec) -{ - pattr->bold = (highlight_has_attr(hl_id, HL_BOLD, modec) != NULL); - pattr->italic = (highlight_has_attr(hl_id, HL_ITALIC, modec) != NULL); - pattr->underline = (highlight_has_attr(hl_id, HL_UNDERLINE, modec) != NULL); - pattr->undercurl = (highlight_has_attr(hl_id, HL_UNDERCURL, modec) != NULL); - pattr->underdouble = (highlight_has_attr(hl_id, HL_UNDERDOUBLE, modec) != NULL); - pattr->underdotted = (highlight_has_attr(hl_id, HL_UNDERDOTTED, modec) != NULL); - pattr->underdashed = (highlight_has_attr(hl_id, HL_UNDERDASHED, modec) != NULL); - - uint32_t fg_color = prt_get_color(hl_id, modec); - - if (fg_color == PRCOLOR_WHITE) { - fg_color = PRCOLOR_BLACK; - } else if (*p_bg == 'd') { - fg_color = darken_rgb(fg_color); - } - - pattr->fg_color = fg_color; - pattr->bg_color = PRCOLOR_WHITE; -} - -static void prt_set_fg(uint32_t fg) -{ - if (fg != curr_fg) { - curr_fg = fg; - mch_print_set_fg(fg); - } -} - -static void prt_set_bg(uint32_t bg) -{ - if (bg != curr_bg) { - curr_bg = bg; - mch_print_set_bg(bg); - } -} - -static void prt_set_font(const TriState bold, const TriState italic, const TriState underline) -{ - if (curr_bold != bold - || curr_italic != italic - || curr_underline != underline) { - curr_underline = underline; - curr_italic = italic; - curr_bold = bold; - mch_print_set_font(bold, italic, underline); - } -} - -// Print the line number in the left margin. -static void prt_line_number(prt_settings_T *const psettings, const int page_line, - const linenr_T lnum) -{ - prt_set_fg(psettings->number.fg_color); - prt_set_bg(psettings->number.bg_color); - prt_set_font(psettings->number.bold, psettings->number.italic, - psettings->number.underline); - mch_print_start_line(true, page_line); - - // Leave two spaces between the number and the text; depends on - // PRINT_NUMBER_WIDTH. - char tbuf[20]; - snprintf(tbuf, sizeof(tbuf), "%6ld", (long)lnum); - for (int i = 0; i < 6; i++) { - (void)mch_print_text_out((char_u *)(&tbuf[i]), 1); - } - - if (psettings->do_syntax) { - // Set colors for next character. - current_syn_id = -1; - } else { - // Set colors and font back to normal. - prt_set_fg(PRCOLOR_BLACK); - prt_set_bg(PRCOLOR_WHITE); - prt_set_font(kFalse, kFalse, kFalse); - } -} - -// Get the currently effective header height. -int prt_header_height(void) -{ - if (printer_opts[OPT_PRINT_HEADERHEIGHT].present) { - return printer_opts[OPT_PRINT_HEADERHEIGHT].number; - } - return 2; -} - -// Return true if using a line number for printing. -int prt_use_number(void) -{ - return printer_opts[OPT_PRINT_NUMBER].present - && TOLOWER_ASC(printer_opts[OPT_PRINT_NUMBER].string[0]) == 'y'; -} - -// Return the unit used in a margin item in 'printoptions'. -// Returns PRT_UNIT_NONE if not recognized. -int prt_get_unit(int idx) -{ - int u = PRT_UNIT_NONE; - int i; - static char *(units[4]) = PRT_UNIT_NAMES; - - if (printer_opts[idx].present) { - for (i = 0; i < 4; i++) { - if (STRNICMP(printer_opts[idx].string, units[i], 2) == 0) { - u = i; - break; - } - } - } - return u; -} - -// Print the page header. -static void prt_header(prt_settings_T *const psettings, const int pagenum, const linenr_T lnum) -{ - int width = psettings->chars_per_line; - - // Also use the space for the line number. - if (prt_use_number()) { - width += PRINT_NUMBER_WIDTH; - } - - assert(width >= 0); - const size_t tbuf_size = (size_t)width + IOSIZE; - char_u *tbuf = xmalloc(tbuf_size); - - if (*p_header != NUL) { - linenr_T tmp_lnum, tmp_topline, tmp_botline; - - // Need to (temporarily) set current line number and first/last line - // number on the 'window'. Since we don't know how long the page is, - // set the first and current line number to the top line, and guess - // that the page length is 64. - tmp_lnum = curwin->w_cursor.lnum; - tmp_topline = curwin->w_topline; - tmp_botline = curwin->w_botline; - curwin->w_cursor.lnum = lnum; - curwin->w_topline = lnum; - curwin->w_botline = lnum + 63; - printer_page_num = pagenum; - - build_stl_str_hl(curwin, (char *)tbuf, (size_t)width + IOSIZE, - (char *)p_header, "printheader", 0, - ' ', width, NULL, NULL); - - // Reset line numbers - curwin->w_cursor.lnum = tmp_lnum; - curwin->w_topline = tmp_topline; - curwin->w_botline = tmp_botline; - } else { - snprintf((char *)tbuf, tbuf_size, _("Page %d"), pagenum); - } - - prt_set_fg(PRCOLOR_BLACK); - prt_set_bg(PRCOLOR_WHITE); - prt_set_font(kTrue, kFalse, kFalse); - - // Use a negative line number to indicate printing in the top margin. - int page_line = 0 - prt_header_height(); - mch_print_start_line(true, page_line); - for (char_u *p = tbuf; *p != NUL;) { - const int l = utfc_ptr2len((char *)p); - assert(l >= 0); - if (mch_print_text_out(p, (size_t)l)) { - page_line++; - if (page_line >= 0) { // out of room in header - break; - } - mch_print_start_line(true, page_line); - } - p += l; - } - - xfree(tbuf); - - if (psettings->do_syntax) { - // Set colors for next character. - current_syn_id = -1; - } else { - // Set colors and font back to normal. - prt_set_fg(PRCOLOR_BLACK); - prt_set_bg(PRCOLOR_WHITE); - prt_set_font(kFalse, kFalse, kFalse); - } -} - -// Display a print status message. -static void prt_message(char_u *s) -{ - // TODO(bfredl): delete this - grid_fill(&default_grid, Rows - 1, Rows, 0, Columns, ' ', ' ', 0); - grid_puts(&default_grid, (char *)s, Rows - 1, 0, HL_ATTR(HLF_R)); - ui_flush(); -} - -void ex_hardcopy(exarg_T *eap) -{ - linenr_T lnum; - int collated_copies, uncollated_copies; - prt_settings_T settings; - size_t bytes_to_print = 0; - int page_line; - int jobsplit; - - CLEAR_FIELD(settings); - settings.has_color = true; - - if (*eap->arg == '>') { - char *errormsg = NULL; - - // Expand things like "%.ps". - if (expand_filename(eap, eap->cmdlinep, &errormsg) == FAIL) { - if (errormsg != NULL) { - emsg(errormsg); - } - return; - } - settings.outfile = (char_u *)skipwhite(eap->arg + 1); - } else if (*eap->arg != NUL) { - settings.arguments = (char_u *)eap->arg; - } - - // Initialise for printing. Ask the user for settings, unless forceit is - // set. - // The mch_print_init() code should set up margins if applicable. (It may - // not be a real printer - for example the engine might generate HTML or - // PS.) - if (mch_print_init(&settings, - curbuf->b_fname == NULL ? (char_u *)buf_spname(curbuf) : curbuf->b_sfname == - NULL ? (char_u *)curbuf->b_fname : (char_u *)curbuf->b_sfname, - eap->forceit) == FAIL) { - return; - } - - settings.modec = 'c'; - - if (!syntax_present(curwin)) { - settings.do_syntax = false; - } else if (printer_opts[OPT_PRINT_SYNTAX].present - && TOLOWER_ASC(printer_opts[OPT_PRINT_SYNTAX].string[0]) != 'a') { - settings.do_syntax = - (TOLOWER_ASC(printer_opts[OPT_PRINT_SYNTAX].string[0]) == 'y'); - } else { - settings.do_syntax = settings.has_color; - } - - // Set up printing attributes for line numbers - settings.number.fg_color = PRCOLOR_BLACK; - settings.number.bg_color = PRCOLOR_WHITE; - settings.number.bold = kFalse; - settings.number.italic = kTrue; - settings.number.underline = kFalse; - - // Syntax highlighting of line numbers. - if (prt_use_number() && settings.do_syntax) { - int id = syn_name2id("LineNr"); - if (id > 0) { - id = syn_get_final_id(id); - } - - prt_get_attr(id, &settings.number, settings.modec); - } - - // Estimate the total lines to be printed - for (lnum = eap->line1; lnum <= eap->line2; lnum++) { - bytes_to_print += strlen(skipwhite(ml_get(lnum))); - } - if (bytes_to_print == 0) { - msg(_("No text to be printed")); - goto print_fail_no_begin; - } - - // Set colors and font to normal. - curr_bg = 0xffffffff; - curr_fg = 0xffffffff; - curr_italic = kNone; - curr_bold = kNone; - curr_underline = kNone; - - prt_set_fg(PRCOLOR_BLACK); - prt_set_bg(PRCOLOR_WHITE); - prt_set_font(kFalse, kFalse, kFalse); - current_syn_id = -1; - - jobsplit = (printer_opts[OPT_PRINT_JOBSPLIT].present - && TOLOWER_ASC(printer_opts[OPT_PRINT_JOBSPLIT].string[0]) == 'y'); - - if (!mch_print_begin(&settings)) { - goto print_fail_no_begin; - } - - // Loop over collated copies: 1 2 3, 1 2 3, ... - page_count = 0; - for (collated_copies = 0; - collated_copies < settings.n_collated_copies; - collated_copies++) { - prt_pos_T prtpos; // current print position - prt_pos_T page_prtpos; // print position at page start - int side; - - CLEAR_FIELD(page_prtpos); - page_prtpos.file_line = eap->line1; - prtpos = page_prtpos; - - if (jobsplit && collated_copies > 0) { - // Splitting jobs: Stop a previous job and start a new one. - mch_print_end(&settings); - if (!mch_print_begin(&settings)) { - goto print_fail_no_begin; - } - } - - // Loop over all pages in the print job: 1 2 3 ... - for (page_count = 0; prtpos.file_line <= eap->line2; page_count++) { - // Loop over uncollated copies: 1 1 1, 2 2 2, 3 3 3, ... - // For duplex: 12 12 12 34 34 34, ... - for (uncollated_copies = 0; - uncollated_copies < settings.n_uncollated_copies; - uncollated_copies++) { - // Set the print position to the start of this page. - prtpos = page_prtpos; - - // Do front and rear side of a page. - for (side = 0; side <= settings.duplex; side++) { - // Print one page. - - // Check for interrupt character every page. - os_breakcheck(); - if (got_int || settings.user_abort) { - goto print_fail; - } - - assert(prtpos.bytes_printed <= SIZE_MAX / 100); - sprintf((char *)IObuff, _("Printing page %d (%zu%%)"), // NOLINT(runtime/printf) - page_count + 1 + side, - prtpos.bytes_printed * 100 / bytes_to_print); - if (!mch_print_begin_page((char_u *)IObuff)) { - goto print_fail; - } - - if (settings.n_collated_copies > 1) { - snprintf(IObuff + strlen(IObuff), IOSIZE - strlen(IObuff), - _(" Copy %d of %d"), - collated_copies + 1, - settings.n_collated_copies); - } - prt_message((char_u *)IObuff); - - // Output header if required - if (prt_header_height() > 0) { - prt_header(&settings, page_count + 1 + side, - prtpos.file_line); - } - - for (page_line = 0; page_line < settings.lines_per_page; page_line++) { - prtpos.column = hardcopy_line(&settings, - page_line, &prtpos); - if (prtpos.column == 0) { - // finished a file line - prtpos.bytes_printed += - strlen(skipwhite(ml_get(prtpos.file_line))); - if (++prtpos.file_line > eap->line2) { - break; // reached the end - } - } else if (prtpos.ff) { - // Line had a formfeed in it - start new page but - // stay on the current line - break; - } - } - - if (!mch_print_end_page()) { - goto print_fail; - } - if (prtpos.file_line > eap->line2) { - break; // reached the end - } - } - - // Extra blank page for duplexing with odd number of pages and - // more copies to come. - if (prtpos.file_line > eap->line2 && settings.duplex - && side == 0 - && uncollated_copies + 1 < settings.n_uncollated_copies) { - if (!mch_print_blank_page()) { - goto print_fail; - } - } - } - if (settings.duplex && prtpos.file_line <= eap->line2) { - page_count++; - } - - // Remember the position where the next page starts. - page_prtpos = prtpos; - } - - vim_snprintf((char *)IObuff, IOSIZE, _("Printed: %s"), - settings.jobname); - prt_message((char_u *)IObuff); - } - -print_fail: - if (got_int || settings.user_abort) { - snprintf(IObuff, IOSIZE, "%s", _("Printing aborted")); - prt_message((char_u *)IObuff); - } - mch_print_end(&settings); - -print_fail_no_begin: - mch_print_cleanup(); -} - -// Print one page line. -// Return the next column to print, or zero if the line is finished. -static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T *ppos) -{ - colnr_T col; - char_u *line; - int need_break = false; - int outputlen; - int tab_spaces; - int print_pos; - prt_text_attr_T attr; - int id; - - if (ppos->column == 0 || ppos->ff) { - print_pos = 0; - tab_spaces = 0; - if (!ppos->ff && prt_use_number()) { - prt_line_number(psettings, page_line, ppos->file_line); - } - ppos->ff = false; - } else { - // left over from wrap halfway through a tab - print_pos = ppos->print_pos; - tab_spaces = ppos->lead_spaces; - } - - mch_print_start_line(false, page_line); - line = (char_u *)ml_get(ppos->file_line); - - // Loop over the columns until the end of the file line or right margin. - for (col = ppos->column; line[col] != NUL && !need_break; col += outputlen) { - if ((outputlen = utfc_ptr2len((char *)line + col)) < 1) { - outputlen = 1; - } - // syntax highlighting stuff. - if (psettings->do_syntax) { - id = syn_get_id(curwin, ppos->file_line, col, 1, NULL, false); - if (id > 0) { - id = syn_get_final_id(id); - } else { - id = 0; - } - // Get the line again, a multi-line regexp may invalidate it. - line = (char_u *)ml_get(ppos->file_line); - - if (id != current_syn_id) { - current_syn_id = id; - prt_get_attr(id, &attr, psettings->modec); - prt_set_font(attr.bold, attr.italic, attr.underline); - prt_set_fg(attr.fg_color); - prt_set_bg(attr.bg_color); - } - } - - // Appropriately expand any tabs to spaces. - if (line[col] == TAB || tab_spaces != 0) { - if (tab_spaces == 0) { - tab_spaces = tabstop_padding(print_pos, - curbuf->b_p_ts, - curbuf->b_p_vts_array); - } - - while (tab_spaces > 0) { - need_break = mch_print_text_out((char_u *)" ", 1); - print_pos++; - tab_spaces--; - if (need_break) { - break; - } - } - // Keep the TAB if we didn't finish it. - if (need_break && tab_spaces > 0) { - break; - } - } else if (line[col] == FF - && printer_opts[OPT_PRINT_FORMFEED].present - && TOLOWER_ASC(printer_opts[OPT_PRINT_FORMFEED].string[0]) - == 'y') { - ppos->ff = true; - need_break = 1; - } else { - need_break = mch_print_text_out(line + col, (size_t)outputlen); - print_pos += utf_ptr2cells((char *)line + col); - } - } - - ppos->lead_spaces = tab_spaces; - ppos->print_pos = print_pos; - - // Start next line of file if we clip lines, or have reached end of the - // line, unless we are doing a formfeed. - if (!ppos->ff - && (line[col] == NUL - || (printer_opts[OPT_PRINT_WRAP].present - && TOLOWER_ASC(printer_opts[OPT_PRINT_WRAP].string[0]) - == 'n'))) { - return 0; - } - return col; -} - -// PS printer stuff. -// -// Sources of information to help maintain the PS printing code: -// -// 1. PostScript Language Reference, 3rd Edition, -// Addison-Wesley, 1999, ISBN 0-201-37922-8 -// 2. PostScript Language Program Design, -// Addison-Wesley, 1988, ISBN 0-201-14396-8 -// 3. PostScript Tutorial and Cookbook, -// Addison Wesley, 1985, ISBN 0-201-10179-3 -// 4. PostScript Language Document Structuring Conventions Specification, -// version 3.0, -// Adobe Technote 5001, 25th September 1992 -// 5. PostScript Printer Description File Format Specification, Version 4.3, -// Adobe technote 5003, 9th February 1996 -// 6. Adobe Font Metrics File Format Specification, Version 4.1, -// Adobe Technote 5007, 7th October 1998 -// 7. Adobe CMap and CIDFont Files Specification, Version 1.0, -// Adobe Technote 5014, 8th October 1996 -// 8. Adobe CJKV Character Collections and CMaps for CID-Keyed Fonts, -// Adoboe Technote 5094, 8th September, 2001 -// 9. CJKV Information Processing, 2nd Edition, -// O'Reilly, 2002, ISBN 1-56592-224-7 -// -// Some of these documents can be found in PDF form on Adobe's web site - -// http://www.adobe.com - -enum { - PRT_PS_DEFAULT_DPI = 72, // Default user space resolution - PRT_PS_DEFAULT_FONTSIZE = 10, -}; - -#define PRT_MEDIASIZE_LEN ARRAY_SIZE(prt_mediasize) - -static struct prt_mediasize_S prt_mediasize[] = { - { "A4", 595.0, 842.0 }, - { "letter", 612.0, 792.0 }, - { "10x14", 720.0, 1008.0 }, - { "A3", 842.0, 1191.0 }, - { "A5", 420.0, 595.0 }, - { "B4", 729.0, 1032.0 }, - { "B5", 516.0, 729.0 }, - { "executive", 522.0, 756.0 }, - { "folio", 595.0, 935.0 }, - { "ledger", 1224.0, 792.0 }, // Yes, it is wider than taller! - { "legal", 612.0, 1008.0 }, - { "quarto", 610.0, 780.0 }, - { "statement", 396.0, 612.0 }, - { "tabloid", 792.0, 1224.0 } -}; - -enum { - PRT_PS_FONT_ROMAN = 0, - PRT_PS_FONT_BOLD = 1, - PRT_PS_FONT_OBLIQUE = 2, - PRT_PS_FONT_BOLDOBLIQUE = 3, -}; - -// Standard font metrics for Courier family -static struct prt_ps_font_S prt_ps_courier_font = { - 600, - -100, 50, - -250, 805, - { "Courier", "Courier-Bold", "Courier-Oblique", "Courier-BoldOblique" } -}; - -// Generic font metrics for multi-byte fonts -static struct prt_ps_font_S prt_ps_mb_font = { - 1000, - -100, 50, - -250, 805, - { NULL, NULL, NULL, NULL } -}; - -// Pointer to current font set being used -static struct prt_ps_font_S *prt_ps_font; - -enum { - CS_JIS_C_1978 = 0x01, - CS_JIS_X_1983 = 0x02, - CS_JIS_X_1990 = 0x04, - CS_NEC = 0x08, - CS_MSWINDOWS = 0x10, - CS_CP932 = 0x20, - CS_KANJITALK6 = 0x40, - CS_KANJITALK7 = 0x80, -}; - -// Japanese encodings and charsets -static struct prt_ps_encoding_S j_encodings[] = { - { "iso-2022-jp", NULL, (CS_JIS_C_1978|CS_JIS_X_1983|CS_JIS_X_1990| - CS_NEC) }, - { "euc-jp", "EUC", (CS_JIS_C_1978|CS_JIS_X_1983|CS_JIS_X_1990) }, - { "sjis", "RKSJ", (CS_JIS_C_1978|CS_JIS_X_1983|CS_MSWINDOWS| - CS_KANJITALK6|CS_KANJITALK7) }, - { "cp932", "RKSJ", CS_JIS_X_1983 }, - { "ucs-2", "UCS2", CS_JIS_X_1990 }, - { "utf-8", "UTF8", CS_JIS_X_1990 } -}; -static struct prt_ps_charset_S j_charsets[] = { - { "JIS_C_1978", "78", CS_JIS_C_1978 }, - { "JIS_X_1983", NULL, CS_JIS_X_1983 }, - { "JIS_X_1990", "Hojo", CS_JIS_X_1990 }, - { "NEC", "Ext", CS_NEC }, - { "MSWINDOWS", "90ms", CS_MSWINDOWS }, - { "CP932", "90ms", CS_JIS_X_1983 }, - { "KANJITALK6", "83pv", CS_KANJITALK6 }, - { "KANJITALK7", "90pv", CS_KANJITALK7 } -}; - -enum { - CS_GB_2312_80 = 0x01, - CS_GBT_12345_90 = 0x02, - CS_GBK2K = 0x04, - CS_SC_MAC = 0x08, - CS_GBT_90_MAC = 0x10, - CS_GBK = 0x20, - CS_SC_ISO10646 = 0x40, -}; - -// Simplified Chinese encodings and charsets -static struct prt_ps_encoding_S sc_encodings[] = { - { "iso-2022", NULL, (CS_GB_2312_80|CS_GBT_12345_90) }, - { "gb18030", NULL, CS_GBK2K }, - { "euc-cn", "EUC", (CS_GB_2312_80|CS_GBT_12345_90|CS_SC_MAC| - CS_GBT_90_MAC) }, - { "gbk", "EUC", CS_GBK }, - { "ucs-2", "UCS2", CS_SC_ISO10646 }, - { "utf-8", "UTF8", CS_SC_ISO10646 } -}; -static struct prt_ps_charset_S sc_charsets[] = { - { "GB_2312-80", "GB", CS_GB_2312_80 }, - { "GBT_12345-90", "GBT", CS_GBT_12345_90 }, - { "MAC", "GBpc", CS_SC_MAC }, - { "GBT-90_MAC", "GBTpc", CS_GBT_90_MAC }, - { "GBK", "GBK", CS_GBK }, - { "GB18030", "GBK2K", CS_GBK2K }, - { "ISO10646", "UniGB", CS_SC_ISO10646 } -}; - -enum { - CS_CNS_PLANE_1 = 0x01, - CS_CNS_PLANE_2 = 0x02, - CS_CNS_PLANE_1_2 = 0x04, - CS_B5 = 0x08, - CS_ETEN = 0x10, - CS_HK_GCCS = 0x20, - CS_HK_SCS = 0x40, - CS_HK_SCS_ETEN = 0x80, - CS_MTHKL = 0x100, - CS_MTHKS = 0x200, - CS_DLHKL = 0x400, - CS_DLHKS = 0x800, - CS_TC_ISO10646 = 0x1000, -}; - -// Traditional Chinese encodings and charsets -static struct prt_ps_encoding_S tc_encodings[] = { - { "iso-2022", NULL, (CS_CNS_PLANE_1|CS_CNS_PLANE_2) }, - { "euc-tw", "EUC", CS_CNS_PLANE_1_2 }, - { "big5", "B5", (CS_B5|CS_ETEN|CS_HK_GCCS|CS_HK_SCS| - CS_HK_SCS_ETEN|CS_MTHKL|CS_MTHKS|CS_DLHKL| - CS_DLHKS) }, - { "cp950", "B5", CS_B5 }, - { "ucs-2", "UCS2", CS_TC_ISO10646 }, - { "utf-8", "UTF8", CS_TC_ISO10646 }, - { "utf-16", "UTF16", CS_TC_ISO10646 }, - { "utf-32", "UTF32", CS_TC_ISO10646 } -}; -static struct prt_ps_charset_S tc_charsets[] = { - { "CNS_1992_1", "CNS1", CS_CNS_PLANE_1 }, - { "CNS_1992_2", "CNS2", CS_CNS_PLANE_2 }, - { "CNS_1993", "CNS", CS_CNS_PLANE_1_2 }, - { "BIG5", NULL, CS_B5 }, - { "CP950", NULL, CS_B5 }, - { "ETEN", "ETen", CS_ETEN }, - { "HK_GCCS", "HKgccs", CS_HK_GCCS }, - { "SCS", "HKscs", CS_HK_SCS }, - { "SCS_ETEN", "ETHK", CS_HK_SCS_ETEN }, - { "MTHKL", "HKm471", CS_MTHKL }, - { "MTHKS", "HKm314", CS_MTHKS }, - { "DLHKL", "HKdla", CS_DLHKL }, - { "DLHKS", "HKdlb", CS_DLHKS }, - { "ISO10646", "UniCNS", CS_TC_ISO10646 } -}; - -enum { - CS_KR_X_1992 = 0x01, - CS_KR_MAC = 0x02, - CS_KR_X_1992_MS = 0x04, - CS_KR_ISO10646 = 0x08, -}; - -// Korean encodings and charsets -static struct prt_ps_encoding_S k_encodings[] = { - { "iso-2022-kr", NULL, CS_KR_X_1992 }, - { "euc-kr", "EUC", (CS_KR_X_1992|CS_KR_MAC) }, - { "johab", "Johab", CS_KR_X_1992 }, - { "cp1361", "Johab", CS_KR_X_1992 }, - { "uhc", "UHC", CS_KR_X_1992_MS }, - { "cp949", "UHC", CS_KR_X_1992_MS }, - { "ucs-2", "UCS2", CS_KR_ISO10646 }, - { "utf-8", "UTF8", CS_KR_ISO10646 } -}; -static struct prt_ps_charset_S k_charsets[] = { - { "KS_X_1992", "KSC", CS_KR_X_1992 }, - { "CP1361", "KSC", CS_KR_X_1992 }, - { "MAC", "KSCpc", CS_KR_MAC }, - { "MSWINDOWS", "KSCms", CS_KR_X_1992_MS }, - { "CP949", "KSCms", CS_KR_X_1992_MS }, - { "WANSUNG", "KSCms", CS_KR_X_1992_MS }, - { "ISO10646", "UniKS", CS_KR_ISO10646 } -}; - -static struct prt_ps_mbfont_S prt_ps_mbfonts[] = { - { - ARRAY_SIZE(j_encodings), - j_encodings, - ARRAY_SIZE(j_charsets), - j_charsets, - "jis_roman", - "JIS_X_1983" - }, - { - ARRAY_SIZE(sc_encodings), - sc_encodings, - ARRAY_SIZE(sc_charsets), - sc_charsets, - "gb_roman", - "GB_2312-80" - }, - { - ARRAY_SIZE(tc_encodings), - tc_encodings, - ARRAY_SIZE(tc_charsets), - tc_charsets, - "cns_roman", - "BIG5" - }, - { - ARRAY_SIZE(k_encodings), - k_encodings, - ARRAY_SIZE(k_charsets), - k_charsets, - "ks_roman", - "KS_X_1992" - } -}; - -// The PS prolog file version number has to match - if the prolog file is -// updated, increment the number in the file and here. Version checking was -// added as of VIM 6.2. -// The CID prolog file version number behaves as per PS prolog. -// Table of VIM and prolog versions: -// -// VIM Prolog CIDProlog -// 6.2 1.3 -// 7.0 1.4 1.0 -#define PRT_PROLOG_VERSION "1.4" -#define PRT_CID_PROLOG_VERSION "1.0" - -// Strings to look for in a PS resource file -#define PRT_RESOURCE_HEADER "%!PS-Adobe-" -#define PRT_RESOURCE_RESOURCE "Resource-" -#define PRT_RESOURCE_PROCSET "ProcSet" -#define PRT_RESOURCE_ENCODING "Encoding" -#define PRT_RESOURCE_CMAP "CMap" - -// Data for table based DSC comment recognition, easy to extend if VIM needs to -// read more comments. -enum { - PRT_DSC_MISC_TYPE = -1, - PRT_DSC_TITLE_TYPE = 1, - PRT_DSC_VERSION_TYPE = 2, - PRT_DSC_ENDCOMMENTS_TYPE = 3, -}; - -#define PRT_DSC_TITLE "%%Title:" -#define PRT_DSC_VERSION "%%Version:" -#define PRT_DSC_ENDCOMMENTS "%%EndComments:" - -#define SIZEOF_CSTR(s) (sizeof(s) - 1) -static struct prt_dsc_comment_S prt_dsc_table[] = { - { PRT_DSC_TITLE, SIZEOF_CSTR(PRT_DSC_TITLE), PRT_DSC_TITLE_TYPE }, - { PRT_DSC_VERSION, SIZEOF_CSTR(PRT_DSC_VERSION), - PRT_DSC_VERSION_TYPE }, - { PRT_DSC_ENDCOMMENTS, SIZEOF_CSTR(PRT_DSC_ENDCOMMENTS), - PRT_DSC_ENDCOMMENTS_TYPE } -}; - -// Variables for the output PostScript file. -static FILE *prt_ps_fd; -static bool prt_file_error; -static char_u *prt_ps_file_name = NULL; - -// Various offsets and dimensions in default PostScript user space (points). -// Used for text positioning calculations -static double prt_page_width; -static double prt_page_height; -static double prt_left_margin; -static double prt_right_margin; -static double prt_top_margin; -static double prt_bottom_margin; -static double prt_line_height; -static double prt_first_line_height; -static double prt_char_width; -static double prt_number_width; -static double prt_bgcol_offset; -static double prt_pos_x_moveto = 0.0; -static double prt_pos_y_moveto = 0.0; - -// Various control variables used to decide when and how to change the -// PostScript graphics state. -static bool prt_need_moveto; -static bool prt_do_moveto; -static bool prt_need_font; -static int prt_font; -static bool prt_need_underline; -static TriState prt_underline; -static TriState prt_do_underline; -static bool prt_need_fgcol; -static uint32_t prt_fgcol; -static bool prt_need_bgcol; -static bool prt_do_bgcol; -static uint32_t prt_bgcol; -static uint32_t prt_new_bgcol; -static bool prt_attribute_change; -static double prt_text_run; -static int prt_page_num; -static int prt_bufsiz; - -// Variables controlling physical printing. -static int prt_media; -static int prt_portrait; -static int prt_num_copies; -static int prt_duplex; -static int prt_tumble; -static int prt_collate; - -// Buffers used when generating PostScript output -static char prt_line_buffer[257]; -static garray_T prt_ps_buffer = GA_EMPTY_INIT_VALUE; - -static int prt_do_conv; -static vimconv_T prt_conv; - -static int prt_out_mbyte; -static int prt_custom_cmap; -static char prt_cmap[80]; -static int prt_use_courier; -static bool prt_in_ascii; -static bool prt_half_width; -static char *prt_ascii_encoding; -static char_u prt_hexchar[] = "0123456789abcdef"; - -static void prt_write_file_raw_len(char_u *buffer, size_t bytes) -{ - if (!prt_file_error - && fwrite(buffer, sizeof(char_u), bytes, prt_ps_fd) != bytes) { - emsg(_("E455: Error writing to PostScript output file")); - prt_file_error = true; - } -} - -static void prt_write_file(char *buffer) -{ - prt_write_file_len((char_u *)buffer, strlen(buffer)); -} - -static void prt_write_file_len(char_u *buffer, size_t bytes) -{ - prt_write_file_raw_len(buffer, bytes); -} - -// Write a string. -static void prt_write_string(char *s) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), "%s", s); - prt_write_file(prt_line_buffer); -} - -// Write an int and a space. -static void prt_write_int(int i) -{ - snprintf(prt_line_buffer, sizeof(prt_line_buffer), "%d ", i); - prt_write_file(prt_line_buffer); -} - -// Write a boolean and a space. -static void prt_write_boolean(int b) -{ - snprintf(prt_line_buffer, sizeof(prt_line_buffer), "%s ", (b ? "T" : "F")); - prt_write_file(prt_line_buffer); -} - -// Write PostScript to re-encode and define the font. -static void prt_def_font(char *new_name, char *encoding, int height, char *font) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "/_%s /VIM-%s /%s ref\n", new_name, encoding, font); - prt_write_file(prt_line_buffer); - if (prt_out_mbyte) { - snprintf(prt_line_buffer, sizeof(prt_line_buffer), "/%s %d %f /_%s sffs\n", - new_name, height, 500./prt_ps_courier_font.wx, new_name); - } else { - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "/%s %d /_%s ffs\n", new_name, height, new_name); - } - prt_write_file(prt_line_buffer); -} - -// Write a line to define the CID font. -static void prt_def_cidfont(char *new_name, int height, char *cidfont) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "/_%s /%s[/%s] vim_composefont\n", new_name, prt_cmap, cidfont); - prt_write_file(prt_line_buffer); - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "/%s %d /_%s ffs\n", new_name, height, new_name); - prt_write_file(prt_line_buffer); -} - -// Write a line to define a duplicate of a CID font -static void prt_dup_cidfont(char *original_name, char *new_name) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "/%s %s d\n", new_name, original_name); - prt_write_file(prt_line_buffer); -} - -// Convert a real value into an integer and fractional part as integers, with -// the fractional part being in the range [0,10^precision). The fractional part -// is also rounded based on the precision + 1'th fractional digit. -static void prt_real_bits(double real, int precision, int *pinteger, int *pfraction) -{ - int integer = (int)real; - double fraction = real - integer; - if (real < integer) { - fraction = -fraction; - } - for (int i = 0; i < precision; i++) { - fraction *= 10.0; - } - - *pinteger = integer; - *pfraction = (int)(fraction + 0.5); -} - -// Write a real and a space. Save bytes if real value has no fractional part! -// We use prt_real_bits() as %f in sprintf uses the locale setting to decide -// what decimal point character to use, but PS always requires a '.'. -static void prt_write_real(double val, int prec) -{ - int integer; - int fraction; - - prt_real_bits(val, prec, &integer, &fraction); - // Emit integer part - snprintf(prt_line_buffer, sizeof(prt_line_buffer), "%d", integer); - prt_write_file(prt_line_buffer); - // Only emit fraction if necessary - if (fraction != 0) { - // Remove any trailing zeros - while ((fraction % 10) == 0) { - prec--; - fraction /= 10; - } - // Emit fraction left padded with zeros - snprintf(prt_line_buffer, sizeof(prt_line_buffer), ".%0*d", - prec, fraction); - prt_write_file(prt_line_buffer); - } - snprintf(prt_line_buffer, sizeof(prt_line_buffer), " "); - prt_write_file(prt_line_buffer); -} - -// Write a line to define a numeric variable. -static void prt_def_var(char *name, double value, int prec) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "/%s ", name); - prt_write_file(prt_line_buffer); - prt_write_real(value, prec); - snprintf(prt_line_buffer, sizeof(prt_line_buffer), "d\n"); - prt_write_file(prt_line_buffer); -} - -// Convert size from font space to user space at current font scale -#define PRT_PS_FONT_TO_USER(scale, size) ((size) * ((scale)/1000.0)) - -static void prt_flush_buffer(void) -{ - if (!GA_EMPTY(&prt_ps_buffer)) { - // Any background color must be drawn first - if (prt_do_bgcol && (prt_new_bgcol != PRCOLOR_WHITE)) { - unsigned int r, g, b; - - if (prt_do_moveto) { - prt_write_real(prt_pos_x_moveto, 2); - prt_write_real(prt_pos_y_moveto, 2); - prt_write_string("m\n"); - prt_do_moveto = false; - } - - // Size of rect of background color on which text is printed - prt_write_real(prt_text_run, 2); - prt_write_real(prt_line_height, 2); - - // Lastly add the color of the background - r = (prt_new_bgcol & 0xff0000) >> 16; - g = (prt_new_bgcol & 0xff00) >> 8; - b = prt_new_bgcol & 0xff; - prt_write_real(r / 255.0, 3); - prt_write_real(g / 255.0, 3); - prt_write_real(b / 255.0, 3); - prt_write_string("bg\n"); - } - // Draw underlines before the text as it makes it slightly easier to - // find the starting point. - if (prt_do_underline) { - if (prt_do_moveto) { - prt_write_real(prt_pos_x_moveto, 2); - prt_write_real(prt_pos_y_moveto, 2); - prt_write_string("m\n"); - prt_do_moveto = false; - } - - // Underline length of text run - prt_write_real(prt_text_run, 2); - prt_write_string("ul\n"); - } - // Draw the text - if (prt_out_mbyte) { - prt_write_string("<"); - } else { - prt_write_string("("); - } - assert(prt_ps_buffer.ga_len >= 0); - prt_write_file_raw_len(prt_ps_buffer.ga_data, (size_t)prt_ps_buffer.ga_len); - if (prt_out_mbyte) { - prt_write_string(">"); - } else { - prt_write_string(")"); - } - // Add a moveto if need be and use the appropriate show procedure - if (prt_do_moveto) { - prt_write_real(prt_pos_x_moveto, 2); - prt_write_real(prt_pos_y_moveto, 2); - // moveto and a show - prt_write_string("ms\n"); - prt_do_moveto = false; - } else { // Simple show - prt_write_string("s\n"); - } - ga_clear(&prt_ps_buffer); - ga_init(&prt_ps_buffer, (int)sizeof(char), prt_bufsiz); - } -} - -static void prt_resource_name(char *filename, void *cookie) -{ - char_u *resource_filename = cookie; - - if (strlen(filename) >= MAXPATHL) { - *resource_filename = NUL; - } else { - STRCPY(resource_filename, filename); - } -} - -static int prt_find_resource(char *name, struct prt_ps_resource_S *resource) -{ - char *buffer; - int retval; - - buffer = xmallocz(MAXPATHL); - - STRLCPY(resource->name, name, 64); - // Look for named resource file in runtimepath - STRCPY(buffer, "print"); - add_pathsep(buffer); - xstrlcat(buffer, name, MAXPATHL); - xstrlcat(buffer, ".ps", MAXPATHL); - resource->filename[0] = NUL; - retval = (do_in_runtimepath(buffer, 0, prt_resource_name, resource->filename) - && resource->filename[0] != NUL); - xfree(buffer); - return retval; -} - -// PS CR and LF characters have platform independent values -#define PSLF (0x0a) -#define PSCR (0x0d) - -static struct prt_resfile_buffer_S prt_resfile; - -static int prt_resfile_next_line(void) -{ - int idx; - - // Move to start of next line and then find end of line - idx = prt_resfile.line_end + 1; - while (idx < prt_resfile.len) { - if (prt_resfile.buffer[idx] != PSLF && prt_resfile.buffer[idx] != PSCR) { - break; - } - idx++; - } - prt_resfile.line_start = idx; - - while (idx < prt_resfile.len) { - if (prt_resfile.buffer[idx] == PSLF || prt_resfile.buffer[idx] == PSCR) { - break; - } - idx++; - } - prt_resfile.line_end = idx; - - return idx < prt_resfile.len; -} - -static int prt_resfile_strncmp(int offset, const char *string, int len) - FUNC_ATTR_NONNULL_ALL -{ - // Force not equal if string is longer than remainder of line - if (len > (prt_resfile.line_end - (prt_resfile.line_start + offset))) { - return 1; - } - return strncmp(&prt_resfile.buffer[prt_resfile.line_start + offset], - string, (size_t)len); -} - -static int prt_resfile_skip_nonws(int offset) -{ - int idx; - - idx = prt_resfile.line_start + offset; - while (idx < prt_resfile.line_end) { - if (isspace(prt_resfile.buffer[idx])) { - return idx - prt_resfile.line_start; - } - idx++; - } - return -1; -} - -static int prt_resfile_skip_ws(int offset) -{ - int idx; - - idx = prt_resfile.line_start + offset; - while (idx < prt_resfile.line_end) { - if (!isspace(prt_resfile.buffer[idx])) { - return idx - prt_resfile.line_start; - } - idx++; - } - return -1; -} - -/// Returns detail on next DSC comment line found. -/// -/// @return true if a DSC comment is found, else false -static bool prt_next_dsc(struct prt_dsc_line_S *p_dsc_line) - FUNC_ATTR_NONNULL_ALL -{ - int comment; - int offset; - - // Move to start of next line - if (!prt_resfile_next_line()) { - return false; - } - // DSC comments always start %% - if (prt_resfile_strncmp(0, "%%", 2) != 0) { - return false; - } - // Find type of DSC comment - for (comment = 0; comment < (int)ARRAY_SIZE(prt_dsc_table); comment++) { - if (prt_resfile_strncmp(0, prt_dsc_table[comment].string, - prt_dsc_table[comment].len) == 0) { - break; - } - } - if (comment != ARRAY_SIZE(prt_dsc_table)) { - // Return type of comment - p_dsc_line->type = prt_dsc_table[comment].type; - offset = prt_dsc_table[comment].len; - } else { - // Unrecognised DSC comment, skip to ws after comment leader - p_dsc_line->type = PRT_DSC_MISC_TYPE; - offset = prt_resfile_skip_nonws(0); - if (offset == -1) { - return false; - } - } - - // Skip ws to comment value - offset = prt_resfile_skip_ws(offset); - if (offset == -1) { - return false; - } - p_dsc_line->string = &prt_resfile.buffer[prt_resfile.line_start + offset]; - p_dsc_line->len = prt_resfile.line_end - (prt_resfile.line_start + offset); - - return true; -} - -/// Improved hand crafted parser to get the type, title, and version number of a -/// PS resource file so the file details can be added to the DSC header comments. -static bool prt_open_resource(struct prt_ps_resource_S *resource) - FUNC_ATTR_NONNULL_ALL -{ - struct prt_dsc_line_S dsc_line; - - FILE *fd_resource = os_fopen((char *)resource->filename, READBIN); - if (fd_resource == NULL) { - semsg(_("E624: Can't open file \"%s\""), resource->filename); - return false; - } - CLEAR_FIELD(prt_resfile.buffer); - - // Parse first line to ensure valid resource file - prt_resfile.len = (int)fread((char *)prt_resfile.buffer, sizeof(char_u), - PRT_FILE_BUFFER_LEN, fd_resource); - if (ferror(fd_resource)) { - semsg(_("E457: Can't read PostScript resource file \"%s\""), - resource->filename); - fclose(fd_resource); - return false; - } - fclose(fd_resource); - - prt_resfile.line_end = -1; - prt_resfile.line_start = 0; - if (!prt_resfile_next_line()) { - return false; - } - int offset = 0; - - if (prt_resfile_strncmp(offset, PRT_RESOURCE_HEADER, - (int)strlen(PRT_RESOURCE_HEADER)) != 0) { - semsg(_("E618: file \"%s\" is not a PostScript resource file"), - resource->filename); - return false; - } - - // Skip over any version numbers and following ws - offset += (int)strlen(PRT_RESOURCE_HEADER); - offset = prt_resfile_skip_nonws(offset); - if (offset == -1) { - return false; - } - offset = prt_resfile_skip_ws(offset); - if (offset == -1) { - return false; - } - if (prt_resfile_strncmp(offset, PRT_RESOURCE_RESOURCE, - (int)strlen(PRT_RESOURCE_RESOURCE)) != 0) { - semsg(_("E619: file \"%s\" is not a supported PostScript resource file"), - resource->filename); - return false; - } - offset += (int)strlen(PRT_RESOURCE_RESOURCE); - - // Decide type of resource in the file - if (prt_resfile_strncmp(offset, PRT_RESOURCE_PROCSET, - (int)strlen(PRT_RESOURCE_PROCSET)) == 0) { - resource->type = PRT_RESOURCE_TYPE_PROCSET; - } else if (prt_resfile_strncmp(offset, PRT_RESOURCE_ENCODING, - (int)strlen(PRT_RESOURCE_ENCODING)) == 0) { - resource->type = PRT_RESOURCE_TYPE_ENCODING; - } else if (prt_resfile_strncmp(offset, PRT_RESOURCE_CMAP, - (int)strlen(PRT_RESOURCE_CMAP)) == 0) { - resource->type = PRT_RESOURCE_TYPE_CMAP; - } else { - semsg(_("E619: file \"%s\" is not a supported PostScript resource file"), - resource->filename); - return false; - } - - // Look for title and version of resource - resource->title[0] = '\0'; - resource->version[0] = '\0'; - bool seen_title = false; - bool seen_version = false; - bool seen_all = false; - while (!seen_all && prt_next_dsc(&dsc_line)) { - switch (dsc_line.type) { - case PRT_DSC_TITLE_TYPE: - STRLCPY(resource->title, dsc_line.string, dsc_line.len + 1); - seen_title = true; - if (seen_version) { - seen_all = true; - } - break; - - case PRT_DSC_VERSION_TYPE: - STRLCPY(resource->version, dsc_line.string, dsc_line.len + 1); - seen_version = true; - if (seen_title) { - seen_all = true; - } - break; - - case PRT_DSC_ENDCOMMENTS_TYPE: - // Won't find title or resource after this comment, stop searching - seen_all = true; - break; - - case PRT_DSC_MISC_TYPE: - // Not interested in whatever comment this line had - break; - } - } - - if (!seen_title || !seen_version) { - semsg(_("E619: file \"%s\" is not a supported PostScript resource file"), - resource->filename); - return false; - } - - return true; -} - -static bool prt_check_resource(const struct prt_ps_resource_S *resource, const char *version) - FUNC_ATTR_NONNULL_ALL -{ - // Version number m.n should match, the revision number does not matter - if (strncmp(resource->version, version, strlen(version)) != 0) { - semsg(_("E621: \"%s\" resource file has wrong version"), - resource->name); - return false; - } - - // Other checks to be added as needed - return true; -} - -static void prt_dsc_start(void) -{ - prt_write_string("%!PS-Adobe-3.0\n"); -} - -static void prt_dsc_noarg(char *comment) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "%%%%%s\n", comment); - prt_write_file(prt_line_buffer); -} - -static void prt_dsc_textline(char *comment, char *text) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "%%%%%s: %s\n", comment, text); - prt_write_file(prt_line_buffer); -} - -static void prt_dsc_text(char *comment, char *text) -{ - // TODO(vim): - should scan 'text' for any chars needing escaping! - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "%%%%%s: (%s)\n", comment, text); - prt_write_file(prt_line_buffer); -} - -static void prt_dsc_ints(char *comment, int count, int *ints) -{ - int i; - - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "%%%%%s:", comment); - prt_write_file(prt_line_buffer); - - for (i = 0; i < count; i++) { - snprintf(prt_line_buffer, sizeof(prt_line_buffer), " %d", ints[i]); - prt_write_file(prt_line_buffer); - } - - prt_write_string("\n"); -} - -/// @param comment if NULL add to previous -static void prt_dsc_resources(const char *comment, const char *type, const char *string) - FUNC_ATTR_NONNULL_ARG(2, 3) -{ - if (comment != NULL) { - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "%%%%%s: %s", comment, type); - } else { - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "%%%%+ %s", type); - } - prt_write_file(prt_line_buffer); - - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - " %s\n", string); - prt_write_file(prt_line_buffer); -} - -static void prt_dsc_font_resource(char *resource, struct prt_ps_font_S *ps_font) -{ - int i; - - prt_dsc_resources(resource, "font", - ps_font->ps_fontname[PRT_PS_FONT_ROMAN]); - for (i = PRT_PS_FONT_BOLD; i <= PRT_PS_FONT_BOLDOBLIQUE; i++) { - if (ps_font->ps_fontname[i] != NULL) { - prt_dsc_resources(NULL, "font", ps_font->ps_fontname[i]); - } - } -} - -static void prt_dsc_requirements(int duplex, int tumble, int collate, int color, int num_copies) -{ - // Only output the comment if we need to. - // Note: tumble is ignored if we are not duplexing - if (!(duplex || collate || color || (num_copies > 1))) { - return; - } - - snprintf(prt_line_buffer, sizeof(prt_line_buffer), "%%%%Requirements:"); - prt_write_file(prt_line_buffer); - - if (duplex) { - prt_write_string(" duplex"); - if (tumble) { - prt_write_string("(tumble)"); - } - } - if (collate) { - prt_write_string(" collate"); - } - if (color) { - prt_write_string(" color"); - } - if (num_copies > 1) { - prt_write_string(" numcopies("); - // Note: no space wanted so don't use prt_write_int() - snprintf(prt_line_buffer, sizeof(prt_line_buffer), "%d", - num_copies); - prt_write_file(prt_line_buffer); - prt_write_string(")"); - } - prt_write_string("\n"); -} - -static void prt_dsc_docmedia(char *paper_name, double width, double height, double weight, - char *colour, char *type) -{ - vim_snprintf(prt_line_buffer, sizeof(prt_line_buffer), - "%%%%DocumentMedia: %s ", paper_name); - prt_write_file(prt_line_buffer); - prt_write_real(width, 2); - prt_write_real(height, 2); - prt_write_real(weight, 2); - if (colour == NULL) { - prt_write_string("()"); - } else { - prt_write_string(colour); - } - prt_write_string(" "); - if (type == NULL) { - prt_write_string("()"); - } else { - prt_write_string(type); - } - prt_write_string("\n"); -} - -void mch_print_cleanup(void) -{ - if (prt_out_mbyte) { - int i; - - // Free off all CID font names created, but first clear duplicate - // pointers to the same string (when the same font is used for more than - // one style). - for (i = PRT_PS_FONT_ROMAN; i <= PRT_PS_FONT_BOLDOBLIQUE; i++) { - if (prt_ps_mb_font.ps_fontname[i] != NULL) { - xfree(prt_ps_mb_font.ps_fontname[i]); - } - prt_ps_mb_font.ps_fontname[i] = NULL; - } - } - - if (prt_do_conv) { - convert_setup(&prt_conv, NULL, NULL); - prt_do_conv = false; - } - if (prt_ps_fd != NULL) { - fclose(prt_ps_fd); - prt_ps_fd = NULL; - prt_file_error = false; - } - if (prt_ps_file_name != NULL) { - XFREE_CLEAR(prt_ps_file_name); - } -} - -static double to_device_units(int idx, double physsize, int def_number) -{ - double ret; - int nr; - - int u = prt_get_unit(idx); - if (u == PRT_UNIT_NONE) { - u = PRT_UNIT_PERC; - nr = def_number; - } else { - nr = printer_opts[idx].number; - } - - switch (u) { - case PRT_UNIT_INCH: - ret = nr * PRT_PS_DEFAULT_DPI; - break; - case PRT_UNIT_MM: - ret = nr * PRT_PS_DEFAULT_DPI / 25.4; - break; - case PRT_UNIT_POINT: - ret = nr; - break; - case PRT_UNIT_PERC: - default: - ret = physsize * nr / 100; - break; - } - - return ret; -} - -// Calculate margins for given width and height from printoptions settings. -static void prt_page_margins(double width, double height, double *left, double *right, double *top, - double *bottom) -{ - *left = to_device_units(OPT_PRINT_LEFT, width, 10); - *right = width - to_device_units(OPT_PRINT_RIGHT, width, 5); - *top = height - to_device_units(OPT_PRINT_TOP, height, 5); - *bottom = to_device_units(OPT_PRINT_BOT, height, 5); -} - -static void prt_font_metrics(int font_scale) -{ - prt_line_height = (double)font_scale; - prt_char_width = PRT_PS_FONT_TO_USER(font_scale, prt_ps_font->wx); -} - -static int prt_get_cpl(void) -{ - if (prt_use_number()) { - prt_number_width = PRINT_NUMBER_WIDTH * prt_char_width; - // If we are outputting multi-byte characters then line numbers will be - // printed with half width characters - if (prt_out_mbyte) { - prt_number_width /= 2; - } - prt_left_margin += prt_number_width; - } else { - prt_number_width = 0.0; - } - - return (int)((prt_right_margin - prt_left_margin) / prt_char_width); -} - -static void prt_build_cid_fontname(int font, char_u *name, int name_len) -{ - assert(name_len >= 0); - char *fontname = xstrndup((char *)name, (size_t)name_len); - prt_ps_mb_font.ps_fontname[font] = fontname; -} - -// Get number of lines of text that fit on a page (excluding the header). -static int prt_get_lpp(void) -{ - int lpp; - - // Calculate offset to lower left corner of background rect based on actual - // font height (based on its bounding box) and the line height, handling the - // case where the font height can exceed the line height. - prt_bgcol_offset = PRT_PS_FONT_TO_USER(prt_line_height, - prt_ps_font->bbox_min_y); - if ((prt_ps_font->bbox_max_y - prt_ps_font->bbox_min_y) < 1000.0) { - prt_bgcol_offset -= PRT_PS_FONT_TO_USER(prt_line_height, - (1000.0 - (prt_ps_font->bbox_max_y - - prt_ps_font->bbox_min_y)) / 2); - } - - // Get height for topmost line based on background rect offset. - prt_first_line_height = prt_line_height + prt_bgcol_offset; - - // Calculate lpp - lpp = (int)((prt_top_margin - prt_bottom_margin) / prt_line_height); - - // Adjust top margin if there is a header - prt_top_margin -= prt_line_height * prt_header_height(); - - return lpp - prt_header_height(); -} - -static int prt_match_encoding(char *p_encoding, struct prt_ps_mbfont_S *p_cmap, - struct prt_ps_encoding_S **pp_mbenc) -{ - int mbenc; - int enc_len; - struct prt_ps_encoding_S *p_mbenc; - - *pp_mbenc = NULL; - // Look for recognised encoding - enc_len = (int)strlen(p_encoding); - p_mbenc = p_cmap->encodings; - for (mbenc = 0; mbenc < p_cmap->num_encodings; mbenc++) { - if (STRNICMP(p_mbenc->encoding, p_encoding, enc_len) == 0) { - *pp_mbenc = p_mbenc; - return true; - } - p_mbenc++; - } - return false; -} - -static int prt_match_charset(char *p_charset, struct prt_ps_mbfont_S *p_cmap, - struct prt_ps_charset_S **pp_mbchar) -{ - int mbchar; - int char_len; - struct prt_ps_charset_S *p_mbchar; - - // Look for recognised character set, using default if one is not given - if (*p_charset == NUL) { - p_charset = p_cmap->defcs; - } - char_len = (int)strlen(p_charset); - p_mbchar = p_cmap->charsets; - for (mbchar = 0; mbchar < p_cmap->num_charsets; mbchar++) { - if (STRNICMP(p_mbchar->charset, p_charset, char_len) == 0) { - *pp_mbchar = p_mbchar; - return true; - } - p_mbchar++; - } - return false; -} - -int mch_print_init(prt_settings_T *psettings, char_u *jobname, int forceit) -{ - int i; - char *paper_name; - int paper_strlen; - int fontsize; - char_u *p; - int props; - int cmap = 0; - struct prt_ps_encoding_S *p_mbenc; - struct prt_ps_encoding_S *p_mbenc_first; - struct prt_ps_charset_S *p_mbchar = NULL; - - // Set up font and encoding. - char_u *p_encoding = (char_u *)enc_skip(p_penc); - if (*p_encoding == NUL) { - p_encoding = (char_u *)enc_skip(p_enc); - } - - // Look for a multi-byte font that matches the encoding and character set. - // Only look if multi-byte character set is defined, or using multi-byte - // encoding other than Unicode. This is because a Unicode encoding does not - // uniquely identify a CJK character set to use. - p_mbenc = NULL; - props = enc_canon_props((char *)p_encoding); - if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE))) { - p_mbenc_first = NULL; - int effective_cmap = 0; - for (cmap = 0; cmap < (int)ARRAY_SIZE(prt_ps_mbfonts); cmap++) { - if (prt_match_encoding((char *)p_encoding, &prt_ps_mbfonts[cmap], - &p_mbenc)) { - if (p_mbenc_first == NULL) { - p_mbenc_first = p_mbenc; - effective_cmap = cmap; - } - if (prt_match_charset(p_pmcs, &prt_ps_mbfonts[cmap], &p_mbchar)) { - break; - } - } - } - - // Use first encoding matched if no charset matched - if (p_mbenc_first != NULL && p_mbchar == NULL) { - p_mbenc = p_mbenc_first; - cmap = effective_cmap; - } - - assert(p_mbenc == NULL || cmap < (int)ARRAY_SIZE(prt_ps_mbfonts)); - } - - prt_out_mbyte = (p_mbenc != NULL); - if (prt_out_mbyte) { - // Build CMap name - will be same for all multi-byte fonts used - prt_cmap[0] = NUL; - - prt_custom_cmap = (p_mbchar == NULL); - if (!prt_custom_cmap) { - // Check encoding and character set are compatible - if ((p_mbenc->needs_charset & p_mbchar->has_charset) == 0) { - emsg(_("E673: Incompatible multi-byte encoding and character set.")); - return false; - } - - // Add charset name if not empty - if (p_mbchar->cmap_charset != NULL) { - STRLCPY(prt_cmap, p_mbchar->cmap_charset, sizeof(prt_cmap) - 2); - STRCAT(prt_cmap, "-"); - } - } else { - // Add custom CMap character set name - if (*p_pmcs == NUL) { - emsg(_("E674: printmbcharset cannot be empty with multi-byte encoding.")); - return false; - } - STRLCPY(prt_cmap, p_pmcs, sizeof(prt_cmap) - 2); - STRCAT(prt_cmap, "-"); - } - - // CMap name ends with (optional) encoding name and -H for horizontal - if (p_mbenc->cmap_encoding != NULL && strlen(prt_cmap) - + strlen(p_mbenc->cmap_encoding) + 3 < sizeof(prt_cmap)) { - STRCAT(prt_cmap, p_mbenc->cmap_encoding); - STRCAT(prt_cmap, "-"); - } - STRCAT(prt_cmap, "H"); - - if (!mbfont_opts[OPT_MBFONT_REGULAR].present) { - emsg(_("E675: No default font specified for multi-byte printing.")); - return false; - } - - // Derive CID font names with fallbacks if not defined - prt_build_cid_fontname(PRT_PS_FONT_ROMAN, - mbfont_opts[OPT_MBFONT_REGULAR].string, - mbfont_opts[OPT_MBFONT_REGULAR].strlen); - if (mbfont_opts[OPT_MBFONT_BOLD].present) { - prt_build_cid_fontname(PRT_PS_FONT_BOLD, - mbfont_opts[OPT_MBFONT_BOLD].string, - mbfont_opts[OPT_MBFONT_BOLD].strlen); - } - if (mbfont_opts[OPT_MBFONT_OBLIQUE].present) { - prt_build_cid_fontname(PRT_PS_FONT_OBLIQUE, - mbfont_opts[OPT_MBFONT_OBLIQUE].string, - mbfont_opts[OPT_MBFONT_OBLIQUE].strlen); - } - if (mbfont_opts[OPT_MBFONT_BOLDOBLIQUE].present) { - prt_build_cid_fontname(PRT_PS_FONT_BOLDOBLIQUE, - mbfont_opts[OPT_MBFONT_BOLDOBLIQUE].string, - mbfont_opts[OPT_MBFONT_BOLDOBLIQUE].strlen); - } - - // Check if need to use Courier for ASCII code range, and if so pick up - // the encoding to use - prt_use_courier = ( - mbfont_opts[OPT_MBFONT_USECOURIER].present - && (TOLOWER_ASC(mbfont_opts[OPT_MBFONT_USECOURIER].string[0]) == 'y')); - if (prt_use_courier) { - // Use national ASCII variant unless ASCII wanted - if (mbfont_opts[OPT_MBFONT_ASCII].present - && (TOLOWER_ASC(mbfont_opts[OPT_MBFONT_ASCII].string[0]) == 'y')) { - prt_ascii_encoding = "ascii"; - } else { - prt_ascii_encoding = prt_ps_mbfonts[cmap].ascii_enc; - } - } - - prt_ps_font = &prt_ps_mb_font; - } else { - prt_use_courier = false; - prt_ps_font = &prt_ps_courier_font; - } - - // Find the size of the paper and set the margins. - prt_portrait = (!printer_opts[OPT_PRINT_PORTRAIT].present - || TOLOWER_ASC(printer_opts[OPT_PRINT_PORTRAIT].string[0]) == - 'y'); - if (printer_opts[OPT_PRINT_PAPER].present) { - paper_name = (char *)printer_opts[OPT_PRINT_PAPER].string; - paper_strlen = printer_opts[OPT_PRINT_PAPER].strlen; - } else { - paper_name = "A4"; - paper_strlen = 2; - } - for (i = 0; i < (int)PRT_MEDIASIZE_LEN; i++) { - if (strlen(prt_mediasize[i].name) == (unsigned)paper_strlen - && STRNICMP(prt_mediasize[i].name, paper_name, - paper_strlen) == 0) { - break; - } - } - if (i == PRT_MEDIASIZE_LEN) { - i = 0; - } - prt_media = i; - - // Set PS pagesize based on media dimensions and print orientation. - // Note: Media and page sizes have defined meanings in PostScript and should - // be kept distinct. Media is the paper (or transparency, or ...) that is - // printed on, whereas the page size is the area that the PostScript - // interpreter renders into. - if (prt_portrait) { - prt_page_width = prt_mediasize[i].width; - prt_page_height = prt_mediasize[i].height; - } else { - prt_page_width = prt_mediasize[i].height; - prt_page_height = prt_mediasize[i].width; - } - - // Set PS page margins based on the PS pagesize, not the mediasize - this - // needs to be done before the cpl and lpp are calculated. - double left, right, top, bottom; - prt_page_margins(prt_page_width, prt_page_height, &left, &right, &top, - &bottom); - prt_left_margin = left; - prt_right_margin = right; - prt_top_margin = top; - prt_bottom_margin = bottom; - - // Set up the font size. - fontsize = PRT_PS_DEFAULT_FONTSIZE; - for (p = (char_u *)p_pfn; (p = (char_u *)vim_strchr((char *)p, ':')) != NULL; p++) { - if (p[1] == 'h' && ascii_isdigit(p[2])) { - fontsize = atoi((char *)p + 2); - } - } - prt_font_metrics(fontsize); - - // Return the number of characters per line, and lines per page for the - // generic print code. - psettings->chars_per_line = prt_get_cpl(); - psettings->lines_per_page = prt_get_lpp(); - - // Catch margin settings that leave no space for output! - if (psettings->chars_per_line <= 0 || psettings->lines_per_page <= 0) { - return FAIL; - } - - // Sort out the number of copies to be printed. PS by default will do - // uncollated copies for you, so once we know how many uncollated copies are - // wanted cache it away and lie to the generic code that we only want one - // uncollated copy. - psettings->n_collated_copies = 1; - psettings->n_uncollated_copies = 1; - prt_num_copies = 1; - prt_collate = (!printer_opts[OPT_PRINT_COLLATE].present - || TOLOWER_ASC(printer_opts[OPT_PRINT_COLLATE].string[0]) == - 'y'); - if (prt_collate) { - // TODO(vim): Get number of collated copies wanted. - } else { - // TODO(vim): Get number of uncollated copies wanted and update the cached - // count. - } - - psettings->jobname = jobname; - - // Set up printer duplex and tumble based on Duplex option setting - default - // is long sided duplex printing (i.e. no tumble). - prt_duplex = true; - prt_tumble = false; - psettings->duplex = 1; - if (printer_opts[OPT_PRINT_DUPLEX].present) { - if (STRNICMP(printer_opts[OPT_PRINT_DUPLEX].string, "off", 3) == 0) { - prt_duplex = false; - psettings->duplex = 0; - } else if (STRNICMP(printer_opts[OPT_PRINT_DUPLEX].string, "short", 5) - == 0) { - prt_tumble = true; - } - } - - // For now user abort not supported - psettings->user_abort = 0; - - // If the user didn't specify a file name, use a temp file. - if (psettings->outfile == NULL) { - prt_ps_file_name = (char_u *)vim_tempname(); - if (prt_ps_file_name == NULL) { - emsg(_(e_notmp)); - return FAIL; - } - prt_ps_fd = os_fopen((char *)prt_ps_file_name, WRITEBIN); - } else { - p = (char_u *)expand_env_save((char *)psettings->outfile); - if (p != NULL) { - prt_ps_fd = os_fopen((char *)p, WRITEBIN); - xfree(p); - } - } - if (prt_ps_fd == NULL) { - emsg(_("E324: Can't open PostScript output file")); - mch_print_cleanup(); - return FAIL; - } - - prt_bufsiz = psettings->chars_per_line; - if (prt_out_mbyte) { - prt_bufsiz *= 2; - } - ga_init(&prt_ps_buffer, (int)sizeof(char), prt_bufsiz); - - prt_page_num = 0; - - prt_attribute_change = false; - prt_need_moveto = false; - prt_need_font = false; - prt_need_fgcol = false; - prt_need_bgcol = false; - prt_need_underline = false; - - prt_file_error = false; - - return OK; -} - -static bool prt_add_resource(struct prt_ps_resource_S *resource) -{ - FILE *fd_resource; - char_u resource_buffer[512]; - size_t bytes_read; - - fd_resource = os_fopen((char *)resource->filename, READBIN); - if (fd_resource == NULL) { - semsg(_("E456: Can't open file \"%s\""), resource->filename); - return false; - } - switch (resource->type) { - case PRT_RESOURCE_TYPE_PROCSET: - case PRT_RESOURCE_TYPE_ENCODING: - case PRT_RESOURCE_TYPE_CMAP: - prt_dsc_resources("BeginResource", prt_resource_types[resource->type], - (char *)resource->title); - break; - default: - return false; - } - - prt_dsc_textline("BeginDocument", (char *)resource->filename); - - for (;;) { - bytes_read = fread((char *)resource_buffer, sizeof(char_u), - sizeof(resource_buffer), fd_resource); - if (ferror(fd_resource)) { - semsg(_("E457: Can't read PostScript resource file \"%s\""), - resource->filename); - fclose(fd_resource); - return false; - } - if (bytes_read == 0) { - break; - } - prt_write_file_raw_len(resource_buffer, bytes_read); - if (prt_file_error) { - fclose(fd_resource); - return false; - } - } - fclose(fd_resource); - - prt_dsc_noarg("EndDocument"); - - prt_dsc_noarg("EndResource"); - - return true; -} - -bool mch_print_begin(prt_settings_T *psettings) -{ - int bbox[4]; - double left; - double right; - double top; - double bottom; - struct prt_ps_resource_S res_prolog; - struct prt_ps_resource_S res_encoding; - char buffer[256]; - char *p_encoding; - struct prt_ps_resource_S res_cidfont; - struct prt_ps_resource_S res_cmap; - - // PS DSC Header comments - no PS code! - prt_dsc_start(); - prt_dsc_textline("Title", (char *)psettings->jobname); - if (os_get_username(buffer, 256) == FAIL) { - STRCPY(buffer, "Unknown"); - } - prt_dsc_textline("For", buffer); - prt_dsc_textline("Creator", longVersion); - // Note: to ensure Clean8bit I don't think we can use LC_TIME - - char ctime_buf[100]; // hopefully enough for every language - prt_dsc_textline("CreationDate", os_ctime(ctime_buf, sizeof(ctime_buf), false)); - prt_dsc_textline("DocumentData", "Clean8Bit"); - prt_dsc_textline("Orientation", "Portrait"); - prt_dsc_text(("Pages"), "atend"); - prt_dsc_textline("PageOrder", "Ascend"); - // The bbox does not change with orientation - it is always in the default - // user coordinate system! We have to recalculate right and bottom - // coordinates based on the font metrics for the bbox to be accurate. - prt_page_margins(prt_mediasize[prt_media].width, - prt_mediasize[prt_media].height, - &left, &right, &top, &bottom); - bbox[0] = (int)left; - if (prt_portrait) { - // In portrait printing the fixed point is the top left corner so we - // derive the bbox from that point. We have the expected cpl chars - // across the media and lpp lines down the media. - bbox[1] = (int)(top - (psettings->lines_per_page + prt_header_height()) - * prt_line_height); - bbox[2] = (int)(left + psettings->chars_per_line * prt_char_width - + 0.5); - bbox[3] = (int)(top + 0.5); - } else { - // In landscape printing the fixed point is the bottom left corner so we - // derive the bbox from that point. We have lpp chars across the media - // and cpl lines up the media. - bbox[1] = (int)bottom; - bbox[2] = (int)(left + ((psettings->lines_per_page - + prt_header_height()) * prt_line_height) + 0.5); - bbox[3] = (int)(bottom + psettings->chars_per_line * prt_char_width - + 0.5); - } - prt_dsc_ints("BoundingBox", 4, bbox); - // The media width and height does not change with landscape printing! - prt_dsc_docmedia(prt_mediasize[prt_media].name, - prt_mediasize[prt_media].width, - prt_mediasize[prt_media].height, - (double)0, NULL, NULL); - // Define fonts needed - if (!prt_out_mbyte || prt_use_courier) { - prt_dsc_font_resource("DocumentNeededResources", &prt_ps_courier_font); - } - if (prt_out_mbyte) { - prt_dsc_font_resource((prt_use_courier ? NULL : "DocumentNeededResources"), &prt_ps_mb_font); - if (!prt_custom_cmap) { - prt_dsc_resources(NULL, "cmap", prt_cmap); - } - } - - // Search for external resources VIM supplies - if (!prt_find_resource("prolog", &res_prolog)) { - emsg(_("E456: Can't find PostScript resource file \"prolog.ps\"")); - return false; - } - if (!prt_open_resource(&res_prolog)) { - return false; - } - if (!prt_check_resource(&res_prolog, PRT_PROLOG_VERSION)) { - return false; - } - if (prt_out_mbyte) { - // Look for required version of multi-byte printing procset - if (!prt_find_resource("cidfont", &res_cidfont)) { - emsg(_("E456: Can't find PostScript resource file \"cidfont.ps\"")); - return false; - } - if (!prt_open_resource(&res_cidfont)) { - return false; - } - if (!prt_check_resource(&res_cidfont, PRT_CID_PROLOG_VERSION)) { - return false; - } - } - - // Find an encoding to use for printing. - // Check 'printencoding'. If not set or not found, then use 'encoding'. If - // that cannot be found then default to "latin1". - // Note: VIM specific encoding header is always skipped. - if (!prt_out_mbyte) { - p_encoding = enc_skip(p_penc); - if (*p_encoding == NUL - || !prt_find_resource(p_encoding, &res_encoding)) { - // 'printencoding' not set or not supported - find alternate - int props; - - p_encoding = enc_skip(p_enc); - props = enc_canon_props(p_encoding); - if (!(props & ENC_8BIT) - || !prt_find_resource(p_encoding, &res_encoding)) { - // 8-bit 'encoding' is not supported - // Use latin1 as default printing encoding - p_encoding = "latin1"; - if (!prt_find_resource(p_encoding, &res_encoding)) { - semsg(_("E456: Can't find PostScript resource file \"%s.ps\""), - p_encoding); - return false; - } - } - } - if (!prt_open_resource(&res_encoding)) { - return false; - } - // For the moment there are no checks on encoding resource files to - // perform - } else { - p_encoding = enc_skip(p_penc); - if (*p_encoding == NUL) { - p_encoding = enc_skip(p_enc); - } - if (prt_use_courier) { - // Include ASCII range encoding vector - if (!prt_find_resource(prt_ascii_encoding, &res_encoding)) { - semsg(_("E456: Can't find PostScript resource file \"%s.ps\""), - prt_ascii_encoding); - return false; - } - if (!prt_open_resource(&res_encoding)) { - return false; - } - // For the moment there are no checks on encoding resource files to - // perform - } - } - - prt_conv.vc_type = CONV_NONE; - if (!(enc_canon_props(p_enc) & enc_canon_props(p_encoding) & ENC_8BIT)) { - // Set up encoding conversion if required - if (convert_setup(&prt_conv, p_enc, p_encoding) == FAIL) { - semsg(_("E620: Unable to convert to print encoding \"%s\""), - p_encoding); - return false; - } - } - prt_do_conv = prt_conv.vc_type != CONV_NONE; - - if (prt_out_mbyte && prt_custom_cmap) { - // Find user supplied CMap - if (!prt_find_resource(prt_cmap, &res_cmap)) { - semsg(_("E456: Can't find PostScript resource file \"%s.ps\""), - prt_cmap); - return false; - } - if (!prt_open_resource(&res_cmap)) { - return false; - } - } - - // List resources supplied - STRCPY(buffer, res_prolog.title); - STRCAT(buffer, " "); - STRCAT(buffer, res_prolog.version); - prt_dsc_resources("DocumentSuppliedResources", "procset", buffer); - if (prt_out_mbyte) { - STRCPY(buffer, res_cidfont.title); - STRCAT(buffer, " "); - STRCAT(buffer, res_cidfont.version); - prt_dsc_resources(NULL, "procset", buffer); - - if (prt_custom_cmap) { - STRCPY(buffer, res_cmap.title); - STRCAT(buffer, " "); - STRCAT(buffer, res_cmap.version); - prt_dsc_resources(NULL, "cmap", buffer); - } - } - if (!prt_out_mbyte || prt_use_courier) { - STRCPY(buffer, res_encoding.title); - STRCAT(buffer, " "); - STRCAT(buffer, res_encoding.version); - prt_dsc_resources(NULL, "encoding", buffer); - } - prt_dsc_requirements(prt_duplex, prt_tumble, prt_collate, - psettings->do_syntax, - prt_num_copies); - prt_dsc_noarg("EndComments"); - - // PS Document page defaults - prt_dsc_noarg("BeginDefaults"); - - // List font resources most likely common to all pages - if (!prt_out_mbyte || prt_use_courier) { - prt_dsc_font_resource("PageResources", &prt_ps_courier_font); - } - if (prt_out_mbyte) { - prt_dsc_font_resource((prt_use_courier ? NULL : "PageResources"), - &prt_ps_mb_font); - if (!prt_custom_cmap) { - prt_dsc_resources(NULL, "cmap", prt_cmap); - } - } - - // Paper will be used for all pages - prt_dsc_textline("PageMedia", prt_mediasize[prt_media].name); - - prt_dsc_noarg("EndDefaults"); - - // PS Document prolog inclusion - all required procsets. - prt_dsc_noarg("BeginProlog"); - - // Add required procsets - NOTE: order is important! - if (!prt_add_resource(&res_prolog)) { - return false; - } - if (prt_out_mbyte) { - // Add CID font procset, and any user supplied CMap - if (!prt_add_resource(&res_cidfont)) { - return false; - } - if (prt_custom_cmap && !prt_add_resource(&res_cmap)) { - return false; - } - } - - if (!prt_out_mbyte || prt_use_courier) { - // There will be only one Roman font encoding to be included in the PS - // file. - if (!prt_add_resource(&res_encoding)) { - return false; - } - } - - prt_dsc_noarg("EndProlog"); - - // PS Document setup - must appear after the prolog - prt_dsc_noarg("BeginSetup"); - - // Device setup - page size and number of uncollated copies - prt_write_int((int)prt_mediasize[prt_media].width); - prt_write_int((int)prt_mediasize[prt_media].height); - prt_write_int(0); - prt_write_string("sps\n"); - prt_write_int(prt_num_copies); - prt_write_string("nc\n"); - prt_write_boolean(prt_duplex); - prt_write_boolean(prt_tumble); - prt_write_string("dt\n"); - prt_write_boolean(prt_collate); - prt_write_string("c\n"); - - // Font resource inclusion and definition - if (!prt_out_mbyte || prt_use_courier) { - // When using Courier for ASCII range when printing multi-byte, need to - // pick up ASCII encoding to use with it. - if (prt_use_courier) { - p_encoding = prt_ascii_encoding; - } - prt_dsc_resources("IncludeResource", "font", - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_ROMAN]); - prt_def_font("F0", p_encoding, (int)prt_line_height, - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_ROMAN]); - prt_dsc_resources("IncludeResource", "font", - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_BOLD]); - prt_def_font("F1", p_encoding, (int)prt_line_height, - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_BOLD]); - prt_dsc_resources("IncludeResource", "font", - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_OBLIQUE]); - prt_def_font("F2", p_encoding, (int)prt_line_height, - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_OBLIQUE]); - prt_dsc_resources("IncludeResource", "font", - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_BOLDOBLIQUE]); - prt_def_font("F3", p_encoding, (int)prt_line_height, - prt_ps_courier_font.ps_fontname[PRT_PS_FONT_BOLDOBLIQUE]); - } - if (prt_out_mbyte) { - // Define the CID fonts to be used in the job. Typically CJKV fonts do - // not have an italic form being a western style, so where no font is - // defined for these faces VIM falls back to an existing face. - // Note: if using Courier for the ASCII range then the printout will - // have bold/italic/bolditalic regardless of the setting of printmbfont. - prt_dsc_resources("IncludeResource", "font", - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_ROMAN]); - if (!prt_custom_cmap) { - prt_dsc_resources("IncludeResource", "cmap", prt_cmap); - } - prt_def_cidfont("CF0", (int)prt_line_height, - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_ROMAN]); - - if (prt_ps_mb_font.ps_fontname[PRT_PS_FONT_BOLD] != NULL) { - prt_dsc_resources("IncludeResource", "font", - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_BOLD]); - if (!prt_custom_cmap) { - prt_dsc_resources("IncludeResource", "cmap", prt_cmap); - } - prt_def_cidfont("CF1", (int)prt_line_height, - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_BOLD]); - } else { - // Use ROMAN for BOLD - prt_dup_cidfont("CF0", "CF1"); - } - if (prt_ps_mb_font.ps_fontname[PRT_PS_FONT_OBLIQUE] != NULL) { - prt_dsc_resources("IncludeResource", "font", - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_OBLIQUE]); - if (!prt_custom_cmap) { - prt_dsc_resources("IncludeResource", "cmap", prt_cmap); - } - prt_def_cidfont("CF2", (int)prt_line_height, - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_OBLIQUE]); - } else { - // Use ROMAN for OBLIQUE - prt_dup_cidfont("CF0", "CF2"); - } - if (prt_ps_mb_font.ps_fontname[PRT_PS_FONT_BOLDOBLIQUE] != NULL) { - prt_dsc_resources("IncludeResource", "font", - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_BOLDOBLIQUE]); - if (!prt_custom_cmap) { - prt_dsc_resources("IncludeResource", "cmap", prt_cmap); - } - prt_def_cidfont("CF3", (int)prt_line_height, - prt_ps_mb_font.ps_fontname[PRT_PS_FONT_BOLDOBLIQUE]); - } else { - // Use BOLD for BOLDOBLIQUE - prt_dup_cidfont("CF1", "CF3"); - } - } - - // Misc constant vars used for underlining and background rects - prt_def_var("UO", PRT_PS_FONT_TO_USER(prt_line_height, - prt_ps_font->uline_offset), 2); - prt_def_var("UW", PRT_PS_FONT_TO_USER(prt_line_height, - prt_ps_font->uline_width), 2); - prt_def_var("BO", prt_bgcol_offset, 2); - - prt_dsc_noarg("EndSetup"); - - // Fail if any problems writing out to the PS file - return !prt_file_error; -} - -void mch_print_end(prt_settings_T *psettings) -{ - prt_dsc_noarg("Trailer"); - - // Output any info we don't know in toto until we finish - prt_dsc_ints("Pages", 1, &prt_page_num); - - prt_dsc_noarg("EOF"); - - // Write CTRL-D to close serial communication link if used. - // NOTHING MUST BE WRITTEN AFTER THIS! - prt_write_file("\004"); - - if (!prt_file_error && psettings->outfile == NULL - && !got_int && !psettings->user_abort) { - // Close the file first. - if (prt_ps_fd != NULL) { - fclose(prt_ps_fd); - prt_ps_fd = NULL; - } - prt_message((char_u *)_("Sending to printer...")); - - // Not printing to a file: use 'printexpr' to print the file. - if (eval_printexpr((char *)prt_ps_file_name, (char *)psettings->arguments) - == FAIL) { - emsg(_("E365: Failed to print PostScript file")); - } else { - prt_message((char_u *)_("Print job sent.")); - } - } - - mch_print_cleanup(); -} - -int mch_print_end_page(void) -{ - prt_flush_buffer(); - - prt_write_string("re sp\n"); - - prt_dsc_noarg("PageTrailer"); - - return !prt_file_error; -} - -int mch_print_begin_page(char_u *str) -{ - int page_num[2]; - - prt_page_num++; - - page_num[0] = page_num[1] = prt_page_num; - prt_dsc_ints("Page", 2, page_num); - - prt_dsc_noarg("BeginPageSetup"); - - prt_write_string("sv\n0 g\n"); - prt_in_ascii = !prt_out_mbyte; - if (prt_out_mbyte) { - prt_write_string("CF0 sf\n"); - } else { - prt_write_string("F0 sf\n"); - } - prt_fgcol = PRCOLOR_BLACK; - prt_bgcol = PRCOLOR_WHITE; - prt_font = PRT_PS_FONT_ROMAN; - - // Set up page transformation for landscape printing. - if (!prt_portrait) { - prt_write_int(-((int)prt_mediasize[prt_media].width)); - prt_write_string("sl\n"); - } - - prt_dsc_noarg("EndPageSetup"); - - // We have reset the font attributes, force setting them again. - curr_bg = 0xffffffff; - curr_fg = 0xffffffff; - curr_bold = kNone; - - return !prt_file_error; -} - -int mch_print_blank_page(void) -{ - return mch_print_begin_page(NULL) ? (mch_print_end_page()) : false; -} - -static double prt_pos_x = 0; -static double prt_pos_y = 0; - -void mch_print_start_line(const bool margin, const int page_line) -{ - prt_pos_x = prt_left_margin; - if (margin) { - prt_pos_x -= prt_number_width; - } - - prt_pos_y = prt_top_margin - prt_first_line_height - - page_line * prt_line_height; - - prt_attribute_change = true; - prt_need_moveto = true; - prt_half_width = false; -} - -int mch_print_text_out(char_u *const textp, size_t len) -{ - char_u *p = textp; - char_u ch; - char_u ch_buff[8]; - char_u *tofree = NULL; - double char_width = prt_char_width; - - // Ideally VIM would create a rearranged CID font to combine a Roman and - // CJKV font to do what VIM is doing here - use a Roman font for characters - // in the ASCII range, and the original CID font for everything else. - // The problem is that GhostScript still (as of 8.13) does not support - // rearranged fonts even though they have been documented by Adobe for 7 - // years! If they ever do, a lot of this code will disappear. - if (prt_use_courier) { - const bool in_ascii = (len == 1 && *p < 0x80); - if (prt_in_ascii) { - if (!in_ascii) { - // No longer in ASCII range - need to switch font - prt_in_ascii = false; - prt_need_font = true; - prt_attribute_change = true; - } - } else if (in_ascii) { - // Now in ASCII range - need to switch font - prt_in_ascii = true; - prt_need_font = true; - prt_attribute_change = true; - } - } - if (prt_out_mbyte) { - const bool half_width = (utf_ptr2cells((char *)p) == 1); - if (half_width) { - char_width /= 2; - } - if (prt_half_width) { - if (!half_width) { - prt_half_width = false; - prt_pos_x += prt_char_width/4; - prt_need_moveto = true; - prt_attribute_change = true; - } - } else if (half_width) { - prt_half_width = true; - prt_pos_x += prt_char_width/4; - prt_need_moveto = true; - prt_attribute_change = true; - } - } - - // Output any required changes to the graphics state, after flushing any - // text buffered so far. - if (prt_attribute_change) { - prt_flush_buffer(); - // Reset count of number of chars that will be printed - prt_text_run = 0; - - if (prt_need_moveto) { - prt_pos_x_moveto = prt_pos_x; - prt_pos_y_moveto = prt_pos_y; - prt_do_moveto = true; - - prt_need_moveto = false; - } - if (prt_need_font) { - if (!prt_in_ascii) { - prt_write_string("CF"); - } else { - prt_write_string("F"); - } - prt_write_int(prt_font); - prt_write_string("sf\n"); - prt_need_font = false; - } - if (prt_need_fgcol) { - unsigned int r, g, b; - r = (prt_fgcol & 0xff0000) >> 16; - g = (prt_fgcol & 0xff00) >> 8; - b = prt_fgcol & 0xff; - - prt_write_real(r / 255.0, 3); - if (r == g && g == b) { - prt_write_string("g\n"); - } else { - prt_write_real(g / 255.0, 3); - prt_write_real(b / 255.0, 3); - prt_write_string("r\n"); - } - prt_need_fgcol = false; - } - - if (prt_bgcol != PRCOLOR_WHITE) { - prt_new_bgcol = prt_bgcol; - if (prt_need_bgcol) { - prt_do_bgcol = true; - } - } else { - prt_do_bgcol = false; - } - prt_need_bgcol = false; - - if (prt_need_underline) { - prt_do_underline = prt_underline; - } - prt_need_underline = false; - - prt_attribute_change = false; - } - - if (prt_do_conv) { - // Convert from multi-byte to 8-bit encoding - p = (char_u *)string_convert(&prt_conv, (char *)p, &len); - tofree = p; - if (p == NULL) { - p = (char_u *)""; - len = 0; - } - } - - if (prt_out_mbyte) { - // Multi-byte character strings are represented more efficiently as hex - // strings when outputting clean 8 bit PS. - while (len-- > 0) { - ch = prt_hexchar[(unsigned)(*p) >> 4]; - ga_append(&prt_ps_buffer, (char)ch); - ch = prt_hexchar[(*p) & 0xf]; - ga_append(&prt_ps_buffer, (char)ch); - p++; - } - } else { - // Add next character to buffer of characters to output. - // Note: One printed character may require several PS characters to - // represent it, but we only count them as one printed character. - ch = *p; - if (ch < 32 || ch == '(' || ch == ')' || ch == '\\') { - // Convert non-printing characters to either their escape or octal - // sequence, ensures PS sent over a serial line does not interfere - // with the comms protocol. - ga_append(&prt_ps_buffer, '\\'); - switch (ch) { - case BS: - ga_append(&prt_ps_buffer, 'b'); break; - case TAB: - ga_append(&prt_ps_buffer, 't'); break; - case NL: - ga_append(&prt_ps_buffer, 'n'); break; - case FF: - ga_append(&prt_ps_buffer, 'f'); break; - case CAR: - ga_append(&prt_ps_buffer, 'r'); break; - case '(': - ga_append(&prt_ps_buffer, '('); break; - case ')': - ga_append(&prt_ps_buffer, ')'); break; - case '\\': - ga_append(&prt_ps_buffer, '\\'); break; - - default: - sprintf((char *)ch_buff, "%03o", (unsigned int)ch); // NOLINT(runtime/printf) - ga_append(&prt_ps_buffer, (char)ch_buff[0]); - ga_append(&prt_ps_buffer, (char)ch_buff[1]); - ga_append(&prt_ps_buffer, (char)ch_buff[2]); - break; - } - } else { - ga_append(&prt_ps_buffer, (char)ch); - } - } - - // Need to free any translated characters - xfree(tofree); - - prt_text_run += char_width; - prt_pos_x += char_width; - - // The downside of fp - use relative error on right margin check - const double next_pos = prt_pos_x + prt_char_width; - const bool need_break = (next_pos > prt_right_margin) - && ((next_pos - prt_right_margin) > (prt_right_margin * 1e-5)); - - if (need_break) { - prt_flush_buffer(); - } - - return need_break; -} - -void mch_print_set_font(const TriState iBold, const TriState iItalic, const TriState iUnderline) -{ - int font = 0; - - if (iBold) { - font |= 0x01; - } - if (iItalic) { - font |= 0x02; - } - - if (font != prt_font) { - prt_font = font; - prt_attribute_change = true; - prt_need_font = true; - } - if (prt_underline != iUnderline) { - prt_underline = iUnderline; - prt_attribute_change = true; - prt_need_underline = true; - } -} - -void mch_print_set_bg(uint32_t bgcol) -{ - prt_bgcol = bgcol; - prt_attribute_change = true; - prt_need_bgcol = true; -} - -void mch_print_set_fg(uint32_t fgcol) -{ - if (fgcol != prt_fgcol) { - prt_fgcol = fgcol; - prt_attribute_change = true; - prt_need_fgcol = true; - } -} diff --git a/src/nvim/hardcopy.h b/src/nvim/hardcopy.h deleted file mode 100644 index 673d559ecf..0000000000 --- a/src/nvim/hardcopy.h +++ /dev/null @@ -1,80 +0,0 @@ -#ifndef NVIM_HARDCOPY_H -#define NVIM_HARDCOPY_H - -#include <stdint.h> -#include <stdlib.h> - -#include "nvim/ex_cmds_defs.h" -#include "nvim/globals.h" -#include "nvim/types.h" - -// Structure to hold printing color and font attributes. -typedef struct { - uint32_t fg_color; - uint32_t bg_color; - TriState bold; - TriState italic; - TriState underline; - int undercurl; - int underdouble; - int underdotted; - int underdashed; -} prt_text_attr_T; - -// Structure passed back to the generic printer code. -typedef struct { - int n_collated_copies; - int n_uncollated_copies; - int duplex; - int chars_per_line; - int lines_per_page; - int has_color; - prt_text_attr_T number; - int modec; - int do_syntax; - int user_abort; - char_u *jobname; - char_u *outfile; - char_u *arguments; -} prt_settings_T; - -// Generic option table item, only used for printer at the moment. -typedef struct { - const char *name; - int hasnum; - int number; - char_u *string; // points into option string - int strlen; - int present; -} option_table_T; - -#define OPT_PRINT_TOP 0 -#define OPT_PRINT_BOT 1 -#define OPT_PRINT_LEFT 2 -#define OPT_PRINT_RIGHT 3 -#define OPT_PRINT_HEADERHEIGHT 4 -#define OPT_PRINT_SYNTAX 5 -#define OPT_PRINT_NUMBER 6 -#define OPT_PRINT_WRAP 7 -#define OPT_PRINT_DUPLEX 8 -#define OPT_PRINT_PORTRAIT 9 -#define OPT_PRINT_PAPER 10 -#define OPT_PRINT_COLLATE 11 -#define OPT_PRINT_JOBSPLIT 12 -#define OPT_PRINT_FORMFEED 13 -#define OPT_PRINT_NUM_OPTIONS 14 - -// For prt_get_unit(). -#define PRT_UNIT_NONE -1 -#define PRT_UNIT_PERC 0 -#define PRT_UNIT_INCH 1 -#define PRT_UNIT_MM 2 -#define PRT_UNIT_POINT 3 -#define PRT_UNIT_NAMES { "pc", "in", "mm", "pt" } - -#define PRINT_NUMBER_WIDTH 8 - -#ifdef INCLUDE_GENERATED_DECLARATIONS -# include "hardcopy.h.generated.h" -#endif -#endif // NVIM_HARDCOPY_H diff --git a/src/nvim/option.c b/src/nvim/option.c index 1a6707f128..03d8faa90a 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -52,7 +52,6 @@ #include "nvim/gettext.h" #include "nvim/globals.h" #include "nvim/grid_defs.h" -#include "nvim/hardcopy.h" #include "nvim/highlight.h" #include "nvim/highlight_group.h" #include "nvim/indent.h" @@ -287,28 +286,6 @@ void set_init_1(bool clean_arg) } } -#if defined(MSWIN) || defined(MAC) - // Set print encoding on platforms that don't default to latin1 - set_string_default("printencoding", "hp-roman8", false); -#endif - - // 'printexpr' must be allocated to be able to evaluate it. - set_string_default("printexpr", -#ifdef UNIX - "system(['lpr'] " - "+ (empty(&printdevice)?[]:['-P', &printdevice]) " - "+ [v:fname_in])" - ". delete(v:fname_in)" - "+ v:shell_error", -#elif defined(MSWIN) - "system(['copy', v:fname_in, " - "empty(&printdevice)?'LPT1':&printdevice])" - ". delete(v:fname_in)", -#else - "", -#endif - false); - char *backupdir = stdpaths_user_state_subpath("backup", 2, true); const size_t backupdir_len = strlen(backupdir); backupdir = xrealloc(backupdir, backupdir_len + 3); @@ -611,7 +588,6 @@ void set_init_2(bool headless) p_window = Rows - 1; } set_number_default("window", Rows - 1); - (void)parse_printoptions(); // parse 'printoptions' default value } /// Initialize the options, part three: After reading the .vimrc diff --git a/src/nvim/option_defs.h b/src/nvim/option_defs.h index 34c1d3a255..699a57c2aa 100644 --- a/src/nvim/option_defs.h +++ b/src/nvim/option_defs.h @@ -533,14 +533,6 @@ EXTERN char *p_fo; ///< 'formatoptions' EXTERN char_u *p_fp; // 'formatprg' EXTERN int p_fs; // 'fsync' EXTERN int p_gd; // 'gdefault' -EXTERN char_u *p_pdev; // 'printdevice' -EXTERN char *p_penc; // 'printencoding' -EXTERN char *p_pexpr; // 'printexpr' -EXTERN char *p_pmfn; // 'printmbfont' -EXTERN char *p_pmcs; // 'printmbcharset' -EXTERN char *p_pfn; // 'printfont' -EXTERN char *p_popt; // 'printoptions' -EXTERN char_u *p_header; // 'printheader' EXTERN char *p_guicursor; // 'guicursor' EXTERN char_u *p_guifont; // 'guifont' EXTERN char_u *p_guifontwide; // 'guifontwide' diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 232c645eb0..8c7cf94465 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -1740,65 +1740,6 @@ return { defaults={if_true=false} }, { - full_name='printdevice', abbreviation='pdev', - short_desc=N_("name of the printer to be used for :hardcopy"), - type='string', scope={'global'}, - secure=true, - varname='p_pdev', - defaults={if_true=""} - }, - { - full_name='printencoding', abbreviation='penc', - short_desc=N_("encoding to be used for printing"), - type='string', scope={'global'}, - varname='p_penc', - defaults={if_true=""} - }, - { - full_name='printexpr', abbreviation='pexpr', - short_desc=N_("expression used to print PostScript for :hardcopy"), - type='string', scope={'global'}, - secure=true, - varname='p_pexpr', - defaults={if_true=""} - }, - { - full_name='printfont', abbreviation='pfn', - short_desc=N_("name of the font to be used for :hardcopy"), - type='string', scope={'global'}, - varname='p_pfn', - defaults={if_true="courier"} - }, - { - full_name='printheader', abbreviation='pheader', - short_desc=N_("format of the header used for :hardcopy"), - type='string', scope={'global'}, - varname='p_header', - defaults={if_true="%<%f%h%m%=Page %N"} - }, - { - full_name='printmbcharset', abbreviation='pmbcs', - short_desc=N_("CJK character set to be used for :hardcopy"), - type='string', scope={'global'}, - varname='p_pmcs', - defaults={if_true=""} - }, - { - full_name='printmbfont', abbreviation='pmbfn', - short_desc=N_("font names to be used for CJK output of :hardcopy"), - type='string', scope={'global'}, - varname='p_pmfn', - defaults={if_true=""} - }, - { - full_name='printoptions', abbreviation='popt', - short_desc=N_("controls the format of :hardcopy output"), - type='string', list='onecomma', scope={'global'}, - deny_duplicates=true, - varname='p_popt', - defaults={if_true=""} - }, - { full_name='prompt', short_desc=N_("enable prompt in Ex mode"), type='bool', scope={'global'}, diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index 106a4fbadf..83bbf0ba33 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -23,7 +23,6 @@ #include "nvim/fold.h" #include "nvim/gettext.h" #include "nvim/globals.h" -#include "nvim/hardcopy.h" #include "nvim/highlight_group.h" #include "nvim/indent.h" #include "nvim/indent_c.h" @@ -860,11 +859,6 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf } } } - } else if (varp == &p_penc) { - // Canonize printencoding if VIM standard one - p = enc_canonize(p_penc); - xfree(p_penc); - p_penc = p; } else if (varp == &curbuf->b_p_keymap) { if (!valid_filetype(*varp)) { errmsg = e_invarg; @@ -1071,10 +1065,6 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf } } else if (varp == &p_guicursor) { // 'guicursor' errmsg = parse_shape_opt(SHAPE_CURSOR); - } else if (varp == &p_popt) { - errmsg = parse_printoptions(); - } else if (varp == &p_pmfn) { - errmsg = parse_printmbfont(); } else if (varp == &p_langmap) { // 'langmap' langmap_set(); } else if (varp == &p_breakat) { // 'breakat' @@ -1492,8 +1482,7 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf || gvarp == &p_fex || gvarp == &p_inex || gvarp == &p_inde - || varp == &p_pex - || varp == &p_pexpr) { // '*expr' options + || varp == &p_pex) { // '*expr' options char **p_opt = NULL; // If the option value starts with <SID> or s:, then replace that with @@ -1520,9 +1509,6 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf if (varp == &p_pex) { // 'patchexpr' p_opt = &p_pex; } - if (varp == &p_pexpr) { // 'printexpr' - p_opt = &p_pexpr; - } if (p_opt != NULL) { char *name = get_scriptlocal_funcname(*p_opt); diff --git a/src/nvim/po/af.po b/src/nvim/po/af.po index d64789660e..92a1a6ca3c 100644 --- a/src/nvim/po/af.po +++ b/src/nvim/po/af.po @@ -2794,101 +2794,6 @@ msgstr "soektog het BO getref, gaan voort van ONDER af" msgid "search hit BOTTOM, continuing at TOP" msgstr "soektog het ONDER getref, gaan voort van BO af" -msgid "E550: Missing colon" -msgstr "E550: Ontbrekende dubbelpunt" - -msgid "E551: Illegal component" -msgstr "E551: Ongeldige komponent" - -msgid "E552: digit expected" -msgstr "E552: syfer verwag" - -#, c-format -msgid "Page %d" -msgstr "Bladsy %d" - -msgid "No text to be printed" -msgstr "Geen teks om te druk nie" - -#, fuzzy, c-format -#~ msgid "Printing page %d (%zu%%)" -#~ msgstr "Druk nou bladsy %d (%d%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Kopie %d van %d" - -#, c-format -msgid "Printed: %s" -msgstr "Gedruk: %s" - -msgid "Printing aborted" -msgstr "Drukkery gestaak" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Kan nie na 'PostScript' afvoerler skryf nie" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Kan nie ler \"%s\" oopmaak nie" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Kan nie 'PostScript' hulpbron-ler \"%s\" lees nie" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: Ler \"%s\" is nie 'n 'PostScript' hulpbron-ler nie" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "" -"E619: Ler \"%s\" is nie 'n ondersteunde 'PostScript' hulpbron-ler nie" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" die hulpbron ler het die verkeerde weergawe" - -#~ msgid "E673: Incompatible multi-byte encoding and character set." -#~ msgstr "" - -#~ msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -#~ msgstr "" - -#~ msgid "E675: No default font specified for multi-byte printing." -#~ msgstr "" - -msgid "E324: Can't open PostScript output file" -msgstr "E324: Kan nie 'PostScript' afvoerler oopmaak nie" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Kan nie ler %s oopmaak nie" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Kan nie 'PostScript' hulpbron-ler \"prolog.ps\" lees nie" - -#, fuzzy -#~ msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -#~ msgstr "E456: Kan nie 'PostScript' hulpbron-ler \"%s\" vind nie" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Kan nie 'PostScript' hulpbron-ler \"%s\" vind nie" - -#, fuzzy, c-format -#~ msgid "E620: Unable to convert to print encoding \"%s\"" -#~ msgstr "E620: Kon nie van wye-greep na \"%s\" enkodering verander nie" - -msgid "Sending to printer..." -msgstr "Besig om te stuur na drukker..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: Kon nie 'PostScript' ler druk nie" - -msgid "Print job sent." -msgstr "Druktaak gestuur." - msgid "Add a new database" msgstr "Voeg 'n nuwe databasis by" diff --git a/src/nvim/po/ca.po b/src/nvim/po/ca.po index 5869e6567c..964fcc9325 100644 --- a/src/nvim/po/ca.po +++ b/src/nvim/po/ca.po @@ -3013,128 +3013,6 @@ msgstr "la cerca ha arribat a DALT, es continua a BAIX" msgid "search hit BOTTOM, continuing at TOP" msgstr "la cerca ha arribat a BAIX, es continua a DALT" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Falta un carcter \":\"" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Component illegal" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: S'esperava un dgit" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Pgina %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "No hi ha text per imprimir" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Imprimint la pgina %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Cpia %d de %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "S'ha imprs: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "S'ha avortat la impressi" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Error en escriure el fitxer PostScript" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: No s'ha pogut obrir el fitxer \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: No s'ha pogut llegir el fitxer de recursos PostScript \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: El fitxer \"%s\" no s un fitxer de recursos PostScript" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: El fitxer de recursos PostScript \"%s\" no est suportat" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: La versi del fitxer de recursos \"%s\" no s vlida" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Joc de carcters i codificaci multi-octet no compatibles." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: printmbcharset no pot estar buit si la codificaci s multi-octet" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "" -"E675: No heu especificat cap fosa per defecte per a la impressi multi-octet." - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: No s'ha pogut obrir el fitxer PostScript generat" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: No s'ha pogut obrir el fitxer \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: No s'ha trobat el fitxer de recursos PostScript \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: No s'ha trobat el fitxer de recursos PostScript \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: No s'ha trobat el fitxer de recursos PostScript \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: No s'ha pogut convertir a la codificaci d'impressi \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "S'est enviant a la impressora..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Error en imprimir el fitxer PostScript" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "S'ha enviat la tasca d'impressi." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Afegeix una base de dades nova" diff --git a/src/nvim/po/cs.cp1250.po b/src/nvim/po/cs.cp1250.po index bce5c0fa76..b939139fb5 100644 --- a/src/nvim/po/cs.cp1250.po +++ b/src/nvim/po/cs.cp1250.po @@ -3077,131 +3077,6 @@ msgstr "hledn doshlo zatku, pokraovn od konce" msgid "search hit BOTTOM, continuing at TOP" msgstr "hledn doshlo konce, pokraovn od zatku" -#: ../hardcopy.c:240 -#, fuzzy -msgid "E550: Missing colon" -msgstr "Chyb dvojteka" - -#: ../hardcopy.c:252 -#, fuzzy -msgid "E551: Illegal component" -msgstr "neppustn soust" - -#: ../hardcopy.c:259 -#, fuzzy -msgid "E552: digit expected" -msgstr "oekvna slice" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "dn text k vytitn" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Tisknu stranu %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Kopie %d z %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Vytitno: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Tisk zruen" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Nelze zapisovat do vstupnho PostScriptovho souboru" - -#: ../hardcopy.c:1747 -#, fuzzy, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E456: Nelze otevt soubor \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:1772 -#, fuzzy, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, fuzzy, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Nelze otevt vstupn PostScriptov soubor" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Nelze otevt soubor \"%s\"" - -#: ../hardcopy.c:2583 -#, fuzzy -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:2593 -#, fuzzy -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, fuzzy, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Odeslm na tiskrnu..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Selhal tisk PostScriptovho souboru" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Tiskov loha odeslna." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Pidat novou databzi" diff --git a/src/nvim/po/cs.po b/src/nvim/po/cs.po index f4eab3f0d4..f98dc2828e 100644 --- a/src/nvim/po/cs.po +++ b/src/nvim/po/cs.po @@ -3077,131 +3077,6 @@ msgstr "hledn doshlo zatku, pokraovn od konce" msgid "search hit BOTTOM, continuing at TOP" msgstr "hledn doshlo konce, pokraovn od zatku" -#: ../hardcopy.c:240 -#, fuzzy -msgid "E550: Missing colon" -msgstr "Chyb dvojteka" - -#: ../hardcopy.c:252 -#, fuzzy -msgid "E551: Illegal component" -msgstr "neppustn soust" - -#: ../hardcopy.c:259 -#, fuzzy -msgid "E552: digit expected" -msgstr "oekvna slice" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "dn text k vytitn" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Tisknu stranu %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Kopie %d z %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Vytitno: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Tisk zruen" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Nelze zapisovat do vstupnho PostScriptovho souboru" - -#: ../hardcopy.c:1747 -#, fuzzy, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E456: Nelze otevt soubor \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:1772 -#, fuzzy, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, fuzzy, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Nelze otevt vstupn PostScriptov soubor" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Nelze otevt soubor \"%s\"" - -#: ../hardcopy.c:2583 -#, fuzzy -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:2593 -#, fuzzy -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, fuzzy, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E457: Nelze st zdrojov PostScriptov soubor \"%s\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Odeslm na tiskrnu..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Selhal tisk PostScriptovho souboru" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Tiskov loha odeslna." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Pidat novou databzi" diff --git a/src/nvim/po/da.po b/src/nvim/po/da.po index 1c3284f867..c55918abc9 100644 --- a/src/nvim/po/da.po +++ b/src/nvim/po/da.po @@ -2384,99 +2384,6 @@ msgstr "Størrelse:" msgid "E256: Hangul automata ERROR" msgstr "E256: FEJL ved Hangul automata" -msgid "E550: Missing colon" -msgstr "E550: Manglende kolon" - -msgid "E551: Illegal component" -msgstr "E551: Ulovlig komponent" - -msgid "E552: digit expected" -msgstr "E552: ciffer ventet" - -#, c-format -msgid "Page %d" -msgstr "Side %d" - -msgid "No text to be printed" -msgstr "Ingen tekst at udskrive" - -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Udskriver side %d (%d%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Kopi %d af %d" - -#, c-format -msgid "Printed: %s" -msgstr "Udskrev: %s" - -msgid "Printing aborted" -msgstr "Udskrivning afbrudt" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Fejl ved skrivning til PostScript-output-fil" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Kan ikke åbne filen \"%s\"" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Kan ikke læse PostScript-ressourcefilen \"%s\"" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: filen \"%s\" er ikke en PostScript-ressourcefil" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: filen \"%s\" er ikke en understøttet PostScript-ressourcefil" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\"-ressourcefilen har forkert version" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Inkompatibel multibyte-kodning og -tegnsæt." - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset må ikke være tom med multibyte-kodning." - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Ingen standardskrifttype angivet for multibyte-udskrivning." - -msgid "E324: Can't open PostScript output file" -msgstr "E324: Kan ikke åbne PostScript-output-fil" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Kan ikke åbne filen \"%s\"" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Kan ikke finde PostScript-ressourcefilen \"prolog.ps\"" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Kan ikke finde PostScript-ressourcefilen \"cidfont.ps\"" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Kan ikke finde PostScript-ressourcefilen \"%s.ps\"" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Kan ikke konvertere til udskrivningskodningen \"%s\"" - -msgid "Sending to printer..." -msgstr "Sender til printer..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: Kunne ikke udskrive PostScript-fil" - -msgid "Print job sent." -msgstr "Udskrivningsjob sendt." - msgid "Add a new database" msgstr "Tilføj en ny database" diff --git a/src/nvim/po/de.po b/src/nvim/po/de.po index ce3fd77ede..efd52d3efe 100644 --- a/src/nvim/po/de.po +++ b/src/nvim/po/de.po @@ -2434,126 +2434,6 @@ msgstr "Suche erreichte den ANFANG und wurde am ENDE fortgesetzt" msgid "search hit BOTTOM, continuing at TOP" msgstr "Suche erreichte das ENDE und wurde am ANFANG fortgesetzt" -#: ../hardcopy.c:296 -msgid "E550: Missing colon" -msgstr "E550: Fehlender Doppelpunkt" - -#: ../hardcopy.c:308 -msgid "E551: Illegal component" -msgstr "E551: Unzulssige Komponente" - -#: ../hardcopy.c:315 -msgid "E552: digit expected" -msgstr "E552: Ziffer erwartet" - -#: ../hardcopy.c:529 -#, c-format -msgid "Page %d" -msgstr "Seite %d" - -#: ../hardcopy.c:653 -msgid "No text to be printed" -msgstr "Kein Text zum Drucken" - -#: ../hardcopy.c:724 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Drucke Seite %d (%d%%)" - -#: ../hardcopy.c:736 -#, c-format -msgid " Copy %d of %d" -msgstr " Kopiere %d von %d" - -#: ../hardcopy.c:789 -#, c-format -msgid "Printed: %s" -msgstr "Gedruckt: %s" - -#: ../hardcopy.c:796 -msgid "Printing aborted" -msgstr "Druck abgebrochen" - -#: ../hardcopy.c:1307 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Fehler beim Schreiben der PostScript-Ausgabedatei" - -#: ../hardcopy.c:1679 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Datei \"%s\" kann nicht geffnet werden" - -#: ../hardcopy.c:1688 ../hardcopy.c:2401 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: PostScript-Ressourcendatei \"%s\" kann nicht gelesen werden" - -#: ../hardcopy.c:1704 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: Datei \"%s\" ist keine PostScript-Ressourcendatei" - -#: ../hardcopy.c:1720 ../hardcopy.c:1737 ../hardcopy.c:1776 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: Datei \"%s\" ist keine untersttzte PostScript-Ressourcendatei" - -#: ../hardcopy.c:1788 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" Ressource-Datei hat die falsche Version" - -#: ../hardcopy.c:2157 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Unzulssiger Multibyte-Zeichensatz" - -#: ../hardcopy.c:2169 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: Bei Multibyte-Zeichensatz darf 'printmbcharset' nicht leer sein." - -#: ../hardcopy.c:2185 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Keine Standardschriftart fr Multibyte-Druck angegeben." - -#: ../hardcopy.c:2357 -msgid "E324: Can't open PostScript output file" -msgstr "E324: PostScript-Ausgabedatei kann nicht geffnet werden" - -#: ../hardcopy.c:2389 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Datei \"%s\" kann nicht geffnet werden" - -#: ../hardcopy.c:2514 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: PostScript-Ressourcendatei \"prolog.ps\" nicht gefunden" - -#: ../hardcopy.c:2524 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: PostScript-Ressourcendatei \"cidfont.ps\" nicht gefunden" - -#: ../hardcopy.c:2553 ../hardcopy.c:2570 ../hardcopy.c:2596 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: PostScript-Ressourcendatei \"%s\" nicht gefunden" - -#: ../hardcopy.c:2585 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Umwandlung zu Drucker-Zeichensatz \"%s\" fehlgeschlagen" - -#: ../hardcopy.c:2808 -msgid "Sending to printer..." -msgstr "Schicke zum Drucker..." - -#: ../hardcopy.c:2812 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Druck der PostScript-Datei fehlgeschlagen" - -#: ../hardcopy.c:2814 -msgid "Print job sent." -msgstr "Druckauftrag abgeschickt" - #: ../if_cscope.c:49 msgid "Add a new database" msgstr "Eine neue Datenbank hinzufgen" diff --git a/src/nvim/po/en_GB.po b/src/nvim/po/en_GB.po index 81ee9ed6a0..1c03b305f9 100644 --- a/src/nvim/po/en_GB.po +++ b/src/nvim/po/en_GB.po @@ -2923,128 +2923,6 @@ msgstr "" msgid "search hit BOTTOM, continuing at TOP" msgstr "" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr "" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "" - -#: ../hardcopy.c:1365 -#, fuzzy -msgid "E455: Error writing to PostScript output file" -msgstr "E324: Cannot open PostScript output file" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Cannot open file \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Cannot read PostScript resource file \"%s\"" - -#: ../hardcopy.c:1772 -#, fuzzy, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E457: Cannot read PostScript resource file \"%s\"" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, fuzzy, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E457: Cannot read PostScript resource file \"%s\"" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Cannot open PostScript output file" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Cannot open file \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Cannot find PostScript resource file \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Cannot find PostScript resource file \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Cannot find PostScript resource file \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "" - -#: ../hardcopy.c:2881 -#, fuzzy -msgid "E365: Failed to print PostScript file" -msgstr "E324: Cannot open PostScript output file" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "" - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "" diff --git a/src/nvim/po/eo.po b/src/nvim/po/eo.po index 263fb61b18..aaa39d6041 100644 --- a/src/nvim/po/eo.po +++ b/src/nvim/po/eo.po @@ -2246,100 +2246,6 @@ msgstr "Stilo:" msgid "Size:" msgstr "Grando:" -msgid "E550: Missing colon" -msgstr "E550: Mankas dupunkto" - -msgid "E551: Illegal component" -msgstr "E551: Nevalida komponento" - -msgid "E552: digit expected" -msgstr "E552: cifero atendita" - -#, c-format -msgid "Page %d" -msgstr "Paĝo %d" - -msgid "No text to be printed" -msgstr "Neniu presenda teksto" - -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Presas paĝon %d (%d%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Kopio %d de %d" - -#, c-format -msgid "Printed: %s" -msgstr "Presis: %s" - -msgid "Printing aborted" -msgstr "Presado ĉesigita" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Eraro dum skribo de PostSkripta eliga dosiero" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Ne eblas malfermi dosieron \"%s\"" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Ne eblas legi dosieron de PostSkripta rimedo \"%s\"" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: \"%s\" ne estas dosiero de PostSkripta rimedo" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: \"%s\" ne estas subtenata dosiero de PostSkripta rimedo" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" dosiero de rimedo havas neĝustan version" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Nekongrua plurbajta kodoprezento kaj signaro." - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: printmbcharset ne rajtas esti malplena kun plurbajta kodoprezento." - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Neniu defaŭlta tiparo specifita por plurbajta presado." - -msgid "E324: Can't open PostScript output file" -msgstr "E324: Ne eblas malfermi eligan PostSkriptan dosieron" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Ne eblas malfermi dosieron \"%s\"" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Dosiero de PostSkripta rimedo \"prolog.ps\" ne troveblas" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Dosiero de PostSkripta rimedo \"cidfont.ps\" ne troveblas" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Dosiero de PostSkripta rimedo \"%s.ps\" ne troveblas" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Ne eblas konverti al la presa kodoprezento \"%s\"" - -msgid "Sending to printer..." -msgstr "Sendas al presilo..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: Presado de PostSkripta dosiero malsukcesis" - -msgid "Print job sent." -msgstr "Laboro de presado sendita." - msgid "Add a new database" msgstr "Aldoni novan datumbazon" diff --git a/src/nvim/po/es.po b/src/nvim/po/es.po index 8a44f6a534..120a29af15 100644 --- a/src/nvim/po/es.po +++ b/src/nvim/po/es.po @@ -3054,129 +3054,6 @@ msgstr "La búsqueda ha llegado al PRINCIPIO, continuando desde el FINAL" msgid "search hit BOTTOM, continuing at TOP" msgstr "La búsqueda ha llegado al FINAL, continuando desde el PRINCIPIO" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Falta un símbolo de dos puntos" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Componente ilegal" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: Se esperaba un dígito" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Página %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "No hay texto que imprimir" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Imprimiendo la página %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr "Copia %d de %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Impreso: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Impresión interrumpida" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Error escribiendo al archivo PostScript de salida" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: No se pudo abrir el archivo \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: No se pudo leer el archivo de recursos de PostScript \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: El archivo \"%s\" no es un archivo de recursos PostScript" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: El archivo \"%s\" no es un recurso PostScript que pueda usar" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: La versión del archivo de recursos \"%s\" es incorrecta" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Codificación y set de caracteres multi-byte incompatibles" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: \"printmbcharset\" no puede estar vacío en una codificación multi-byte" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "" -"E675: No se ha definido un tipo de letra predeterminado para impresión " -"multi-byte" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: No se pudo abrir el archivo PostScript de salida" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: No se pudo abrir el archivo %s" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: No se encontró el archivo de recursos PostScript \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: No se encontró el archivo de recursos PostScript \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: No se encontró el archivo de recursos PostScript \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: No se pudo convertir a la codificación de impresión \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Enviando a la impresora..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Falló la impresión del archivo PostScript" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Se ha enviado la tarea de impresión." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Añadir una nueva base de datos" diff --git a/src/nvim/po/fi.po b/src/nvim/po/fi.po index 1c0da244ba..c8db9a64b5 100644 --- a/src/nvim/po/fi.po +++ b/src/nvim/po/fi.po @@ -2896,99 +2896,6 @@ msgstr "haku pääsi ALKUUN, jatketaan LOPUSTA" msgid "search hit BOTTOM, continuing at TOP" msgstr "haku pääsi LOPPUUN, jatketaan ALUSTA" -msgid "E550: Missing colon" -msgstr "E550: kaksoispiste puuttuu" - -msgid "E551: Illegal component" -msgstr "E551: Virheellinen komponentti" - -msgid "E552: digit expected" -msgstr "E552: pitäisi olla numero" - -#, c-format -msgid "Page %d" -msgstr "Sivu %d" - -msgid "No text to be printed" -msgstr "Ei tekstiä tulostettavaksi" - -#, fuzzy, c-format -#~ msgid "Printing page %d (%zu%%)" -#~ msgstr "Tulostetaan sivua %d (%d %%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Kopio %d/%d" - -#, c-format -msgid "Printed: %s" -msgstr "Tulostettu: %s" - -msgid "Printing aborted" -msgstr "Tulostus peruttu" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Virhe kirjoitettaessa PostScriptiä tiedostoon" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Ei voi avata tiedostoa %s" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Ei voi lukea PostScript-resurssitiedostoa %s" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: tiedosto %s ei ole PostScript-resurssitiedosto" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: tiedosto %s ei ole tuettu PostScript-resurssitiedosto" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: resurssitiedoston %s versio on väärä" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Tukematon monitvauinen merkistökoodaus ja merkistö." - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset ei voi olla tyhjä monitavuiselle koodaukselle." - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Ei oletusfonttia monitavuiseen tulostukseen" - -msgid "E324: Can't open PostScript output file" -msgstr "E324: PostScript-tulostetiedoston avaus ei onnistu" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Tiedoston %s avaus ei onnistu" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: PostScript-resurssitiedostoa prolog.ps ei löydy" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: PostScript-resurssitiedostoa cidfont.ps ei löydy" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Postscript-resurssitiedosta %s.ps ei löydy" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Tulostuskoodaukseen %s muunto ei onnistu" - -msgid "Sending to printer..." -msgstr "Lähetetään tulostimelle..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: PostScript-tiedoston tulostus epäonnistui" - -msgid "Print job sent." -msgstr "Tulostustyö lähetetty." - msgid "Add a new database" msgstr "Lisää uusi tietokanta" diff --git a/src/nvim/po/fr.po b/src/nvim/po/fr.po index be2141cd6d..f4fce68ac5 100644 --- a/src/nvim/po/fr.po +++ b/src/nvim/po/fr.po @@ -1881,103 +1881,6 @@ msgstr "Style :" msgid "Size:" msgstr "Taille :" -msgid "E550: Missing colon" -msgstr "E550: ':' manquant" - -# DB - Il s'agit ici d'un problme lors du parsing d'une option dont le contenu -# est une liste d'lments spars par des virgules. -msgid "E551: Illegal component" -msgstr "E551: lment invalide" - -msgid "E552: digit expected" -msgstr "E552: chiffre attendu" - -#, c-format -msgid "Page %d" -msgstr "Page %d" - -msgid "No text to be printed" -msgstr "Aucun texte imprimer" - -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Impression de la page %d (%d%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Copie %d sur %d" - -#, c-format -msgid "Printed: %s" -msgstr "Imprim : %s" - -msgid "Printing aborted" -msgstr "Impression interrompue" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Erreur lors de l'criture du fichier PostScript" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Impossible d'ouvrir le fichier \"%s\"" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Impossible de lire le fichier de ressource PostScript \"%s\"" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: \"%s\" n'est pas un fichier de ressource PostScript" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: \"%s\" n'est pas un fichier de ressource PostScript support" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: La version du fichier de ressource \"%s\" est errone" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Jeu de caractres et encodage multi-octets incompatibles" - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: 'printmbcharset' ne peut pas tre vide avec un encodage multi-octets" - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Aucune police par dfaut pour l'impression multi-octets" - -msgid "E324: Can't open PostScript output file" -msgstr "E324: Impossible d'ouvrir le fichier PostScript de sortie" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Impossible d'ouvrir le fichier \"%s\"" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Le fichier de ressource PostScript \"prolog.ps\" est introuvable" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "" -"E456: Le fichier de ressource PostScript \"cidfont.ps\" est introuvable" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Le fichier de ressource PostScript \"%s.ps\" est introuvable" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: La conversion pour imprimer dans l'encodage \"%s\" a chou" - -msgid "Sending to printer..." -msgstr "Envoi l'imprimante..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: L'impression du fichier PostScript a chou" - -msgid "Print job sent." -msgstr "Tche d'impression envoye." - msgid "E679: recursive loop loading syncolor.vim" msgstr "E679: boucle rcursive lors du chargement de syncolor.vim" diff --git a/src/nvim/po/ga.po b/src/nvim/po/ga.po index 346f0faa84..5107aed75f 100644 --- a/src/nvim/po/ga.po +++ b/src/nvim/po/ga.po @@ -2385,99 +2385,6 @@ msgstr "Mid:" msgid "E256: Hangul automata ERROR" msgstr "E256: EARRID leis na huathoibrein Hangul" -msgid "E550: Missing colon" -msgstr "E550: Idirstad ar iarraidh" - -msgid "E551: Illegal component" -msgstr "E551: Comhphirt neamhcheadaithe" - -msgid "E552: digit expected" -msgstr "E552: ag sil le digit" - -#, c-format -msgid "Page %d" -msgstr "Leathanach %d" - -msgid "No text to be printed" -msgstr "Nl aon tacs le priontil" - -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Leathanach %d (%d%%) phriontil" - -#, c-format -msgid " Copy %d of %d" -msgstr " Cip %d de %d" - -#, c-format -msgid "Printed: %s" -msgstr "Priontilte: %s" - -msgid "Printing aborted" -msgstr "Priontil tobscortha" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Earrid le linn scrobh chuig aschomhad PostScript" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: N fidir an comhad \"%s\" a oscailt" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: N fidir comhad acmhainne PostScript \"%s\" a lamh" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: Nl comhad \"%s\" ina chomhad acmhainne PostScript" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: T \"%s\" ina chomhad acmhainne PostScript gan tac" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: T an leagan mcheart ar an gcomhad acmhainne \"%s\"" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Ionchd agus tacar carachtar ilbhirt neamh-chomhoirinach." - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: n cheadatear printmbcharset a bheith folamh le hionchd ilbhirt." - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Nor ramhshocraodh cl le haghaidh priontla ilbhirt." - -msgid "E324: Can't open PostScript output file" -msgstr "E324: N fidir aschomhad PostScript a oscailt" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: N fidir an comhad \"%s\" a oscailt" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Comhad acmhainne PostScript \"prolog.ps\" gan aimsi" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Comhad acmhainne PostScript \"cidfont.ps\" gan aimsi" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Comhad acmhainne PostScript \"%s.ps\" gan aimsi" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: N fidir an t-ionchd priontla \"%s\" a thiont" - -msgid "Sending to printer..." -msgstr " sheoladh chuig an phrintir..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: Theip ar phriontil comhaid PostScript" - -msgid "Print job sent." -msgstr "Seoladh jab priontla." msgid "Add a new database" msgstr "Bunachar sonra nua" diff --git a/src/nvim/po/it.po b/src/nvim/po/it.po index 152ed2cbe3..2191876724 100644 --- a/src/nvim/po/it.po +++ b/src/nvim/po/it.po @@ -3049,126 +3049,6 @@ msgstr "raggiunta la CIMA nella ricerca, continuo dal FONDO" msgid "search hit BOTTOM, continuing at TOP" msgstr "raggiunto il FONDO nella ricerca, continuo dalla CIMA" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Manca ':'" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Componente non valido" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: aspettavo un numero" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Pagina %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "Manca testo da stampare" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Sto stampando pagina %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Copia %d di %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Stampato: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Stampa non completata" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Errore in scrittura a file PostScript di output" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Non riesco ad aprire il file \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Non riesco a leggere file risorse PostScript \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: file \"%s\" non un file di risorse PostScript" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: file \"%s\" non un file di risorse PostScript supportato" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: il file di risorse \"%s\" ha una versione sbagliata" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Codifica e set di caratteri multi-byte non compatibili." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset non pu essere nullo con codifica multi-byte." - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Font predefinito non specificato per stampa multi-byte." - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Non riesco ad aprire file PostScript di output" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Non riesco ad aprire il file \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Non trovo file risorse PostScript \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Non trovo file risorse PostScript \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Non trovo file risorse PostScript \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Impossibile convertire a codifica di stampa \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Invio a stampante..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Non riesco ad aprire file PostScript" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Richiesta di stampa inviata." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Aggiungi un nuovo database" diff --git a/src/nvim/po/ja.euc-jp.po b/src/nvim/po/ja.euc-jp.po index d7d0faca80..87b4fc5ccd 100644 --- a/src/nvim/po/ja.euc-jp.po +++ b/src/nvim/po/ja.euc-jp.po @@ -2126,101 +2126,6 @@ msgstr ":" msgid "E256: Hangul automata ERROR" msgstr "E256: ϥ륪ȥޥȥ顼" -msgid "E550: Missing colon" -msgstr "E550: ޤ" - -msgid "E551: Illegal component" -msgstr "E551: ʹʸǤǤ" - -msgid "E552: digit expected" -msgstr "E552: ͤɬפǤ" - -#, c-format -msgid "Page %d" -msgstr "%d ڡ" - -msgid "No text to be printed" -msgstr "ƥȤޤ" - -#, c-format -msgid "Printing page %d (%d%%)" -msgstr ": ڡ %d (%d%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " ԡ %d ( %d )" - -#, c-format -msgid "Printed: %s" -msgstr "ޤ: %s" - -msgid "Printing aborted" -msgstr "ߤޤ" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: PostScriptϥեνߥ顼Ǥ" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: ե \"%s\" ޤ" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: PostScriptΥե \"%s\" ɹޤ" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: ե \"%s\" PostScript եǤϤޤ" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: ե \"%s\" бƤʤ PostScript եǤ" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: ե \"%s\" ϥСۤʤޤ" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: ߴ̵ޥХȥǥʸåȤǤ" - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: ޥХȥǥǤ printmbcharset ˤǤޤ" - -msgid "E675: No default font specified for multi-byte printing." -msgstr "" -"E675: ޥХʸ뤿ΥǥեȥեȤꤵƤޤ" -"" - -msgid "E324: Can't open PostScript output file" -msgstr "E324: PostScriptѤΥեޤ" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: ե \"%s\" ޤ" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: PostScriptΥե \"prolog.ps\" Ĥޤ" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: PostScriptΥե \"cidfont.ps\" Ĥޤ" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: PostScriptΥե \"%s.ps\" Ĥޤ" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: \"%s\" ѴǤޤ" - -msgid "Sending to printer..." -msgstr "ץ..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: PostScriptեΰ˼Ԥޤ" - -msgid "Print job sent." -msgstr "֤ޤ" #, c-format msgid "E799: Invalid ID: %d (must be greater than or equal to 1)" diff --git a/src/nvim/po/ja.po b/src/nvim/po/ja.po index b56345e066..bdf67933f3 100644 --- a/src/nvim/po/ja.po +++ b/src/nvim/po/ja.po @@ -2126,102 +2126,6 @@ msgstr "サイズ:" msgid "E256: Hangul automata ERROR" msgstr "E256: ハングルオートマトンエラー" -msgid "E550: Missing colon" -msgstr "E550: コロンがありません" - -msgid "E551: Illegal component" -msgstr "E551: 不正な構文要素です" - -msgid "E552: digit expected" -msgstr "E552: 数値が必要です" - -#, c-format -msgid "Page %d" -msgstr "%d ページ" - -msgid "No text to be printed" -msgstr "印刷するテキストがありません" - -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "印刷中: ページ %d (%d%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " コピー %d (全 %d 中)" - -#, c-format -msgid "Printed: %s" -msgstr "印刷しました: %s" - -msgid "Printing aborted" -msgstr "印刷が中止されました" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: PostScript出力ファイルの書込みエラーです" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: ファイル \"%s\" を開けません" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: PostScriptのリソースファイル \"%s\" を読込めません" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: ファイル \"%s\" は PostScript リソースファイルではありません" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: ファイル \"%s\" は対応していない PostScript リソースファイルです" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: リソースファイル \"%s\" はバージョンが異なります" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: 互換性の無いマルチバイトエンコーディングと文字セットです。" - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: マルチバイトエンコーディングでは printmbcharset を空にできません。" - -msgid "E675: No default font specified for multi-byte printing." -msgstr "" -"E675: マルチバイト文字を印刷するためのデフォルトフォントが指定されていませ" -"ん。" - -msgid "E324: Can't open PostScript output file" -msgstr "E324: PostScript出力用のファイルを開けません" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: ファイル \"%s\" を開けません" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: PostScriptのリソースファイル \"prolog.ps\" が見つかりません" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: PostScriptのリソースファイル \"cidfont.ps\" が見つかりません" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: PostScriptのリソースファイル \"%s.ps\" が見つかりません" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: 印刷エンコード \"%s\" へ変換できません" - -msgid "Sending to printer..." -msgstr "プリンタに送信中..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: PostScriptファイルの印刷に失敗しました" - -msgid "Print job sent." -msgstr "印刷ジョブを送信しました。" - #, c-format msgid "E799: Invalid ID: %d (must be greater than or equal to 1)" msgstr "E799: 無効な ID: %d (1 以上でなければなりません)" diff --git a/src/nvim/po/ko.UTF-8.po b/src/nvim/po/ko.UTF-8.po index 09be710374..8a6b228b18 100644 --- a/src/nvim/po/ko.UTF-8.po +++ b/src/nvim/po/ko.UTF-8.po @@ -2973,126 +2973,6 @@ msgstr "처음까지 찾았음, 끝에서 계속" msgid "search hit BOTTOM, continuing at TOP" msgstr "끝까지 찾았음, 처음부터 계속" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: 콜론이 없습니다" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: 이상한 컴포넌트" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: 숫자가 필요합니다" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "페이지 %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "인쇄될 텍스트가 없습니다" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "페이지 %d 인쇄중 (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " 복사 %d / %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "인쇄됨: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "인쇄가 취소되었습니다." - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: 포스트스크립트 출력파일에 쓸 수 없습니다." - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: \"%s\" 파일을 열 수 없습니다" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: 포스트스크립트 리소스 파일 \"%s\"을(를) 읽을 수 없습니다" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: 파일 \"%s\"은(는) 포스트스크립트 리소스 파일이 아닙니다" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: 파일 \"%s\"은(는) 지원되는 포스트스크립트 리소스 파일이 아닙니다" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" 리소스 파일은 버전이 잘못되었습니다" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: 호환되지 않는 다중문자 인코딩과 문자셋." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset는 다중문자 인코딩에서 반드시 설정되어야 합니다." - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: 다중문자 인쇄를 위한 글꼴이 설정되어 있지 않습니다" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: 포스트스크립트 출력파일을 열 수 없습니다" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: \"%s\" 파일을 열 수 없습니다" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: 포스트스크립트 리소스 파일 \"prolog.ps\"를 찾을 수 없습니다" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: 포스트스크립트 리소스 파일 \"cidfont.ps\"를 찾을 수 없습니다" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: 포스트스크립트 리소스 파일 \"%s.ps\"를 찾을 수 없습니다" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: \"%s\" 인쇄 인코딩으로 변환할 수 없습니다" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "프린터로 보내는 중..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: 포스트스크립트 파일을 인쇄할 수 없습니다" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "인쇄작업이 끝났습니다." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "새 데이터베이스 더하기" diff --git a/src/nvim/po/nb.po b/src/nvim/po/nb.po index 9bc730ae71..75f4eb28a3 100644 --- a/src/nvim/po/nb.po +++ b/src/nvim/po/nb.po @@ -2997,126 +2997,6 @@ msgstr "Sket traff TOPPEN, fortsetter fra BUNNEN" msgid "search hit BOTTOM, continuing at TOP" msgstr "Sket traff BUNNEN, fortsetter fra TOPPEN" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Mangler kolon" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Ulovlig komponent" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: Siffer forventet" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Side %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "Ingen tekst for utskrift" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Skriver ut side %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Kopi %d av %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Skrevet ut: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Utskrift avbrutt" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Feil under skriving til Postscript-fil" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Kan ikke pne filen \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Kan ikke lese Postscript-ressursfil \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: Filen \"%s\" er ikke en Postscript-ressursfil" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: Det er ikke sttte for Postscript-ressursfilen \"%s\"" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: Ressursfilen \"%s\" er feil versjon" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Inkompatibel multibytekoding og tegnsett" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset kan ikke vre tom med multibytekoding" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Ingen standardfont spesifisert for multibyteutskrift" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Kan ikke pne Postscript-fil for skriving" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Kan ikke pne filen \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Fant ikke Postscript-ressursfilen \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Fant ikke Postscript-ressursfilen \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Fant ikke Postscript-ressursfilen \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Klarte ikke konvertere til utskriftskoding \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Sender til skriver..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Feil under utskrift av Postscript-fil" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Skriverjobb sendt." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Legg til en ny database" diff --git a/src/nvim/po/nl.po b/src/nvim/po/nl.po index 4d2e55adc6..d07c566e28 100644 --- a/src/nvim/po/nl.po +++ b/src/nvim/po/nl.po @@ -2985,126 +2985,6 @@ msgstr "zoeken bereikte TOP, verder vanaf BODEM" msgid "search hit BOTTOM, continuing at TOP" msgstr "zoeken bereikte BODEM, verder vanaf TOP" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: dubbelepunt ontbreekt" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: ongeldige component" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: cijfer verwacht" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Pagina %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "Geen tekst om af te drukken" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Afdrukken van pagina %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr "Kopie %d van %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Afgedrukt: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Afdrukken afgebroken" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: wegschrijven Postscript-uitvoerbestand is mislukt" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: openen bestand \"%s\" is mislukt" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: kan 'Postscript resource'-bestand \"%s\" niet lezen" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: bestand \"%s\" is geen 'Postscript resource'-bestand" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: bestand \"%s\" is geen ondersteund 'Postscript resource'-bestand" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: 'resource'-bestand \"%s\" heeft verkeerde versie" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Multi-byte-codering en de tekenverzameling zijn onverenigbaar." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset mag bij multi-byte-codering niet leeg zijn." - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: geen standaard lettertype opgegeven voor multi-byte-afdrukken." - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: openen van PostScript-uitoverbestand is mislukt" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Bestand \"%s\" kan niet worden geopend" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: 'PostScript resource'-bestand \"prolog.ps\" is niet gevonden" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: 'PostScript resource'-bestand \"cidfont.ps\" is niet gevonden" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: 'PostScript resource'-bestand \"%s.ps\" is niet gevonden" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: omzetten naar afdrukcodering \"%s\" is mislukt" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Naar printer versturen..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Afdrukken van PostScript-bestand is mislukt" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Afdrukopdracht verzonden" - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Nieuwe databank toevoegen" diff --git a/src/nvim/po/no.po b/src/nvim/po/no.po index 9bc730ae71..75f4eb28a3 100644 --- a/src/nvim/po/no.po +++ b/src/nvim/po/no.po @@ -2997,126 +2997,6 @@ msgstr "Sket traff TOPPEN, fortsetter fra BUNNEN" msgid "search hit BOTTOM, continuing at TOP" msgstr "Sket traff BUNNEN, fortsetter fra TOPPEN" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Mangler kolon" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Ulovlig komponent" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: Siffer forventet" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Side %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "Ingen tekst for utskrift" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Skriver ut side %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Kopi %d av %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Skrevet ut: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Utskrift avbrutt" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Feil under skriving til Postscript-fil" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Kan ikke pne filen \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Kan ikke lese Postscript-ressursfil \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: Filen \"%s\" er ikke en Postscript-ressursfil" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: Det er ikke sttte for Postscript-ressursfilen \"%s\"" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: Ressursfilen \"%s\" er feil versjon" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Inkompatibel multibytekoding og tegnsett" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset kan ikke vre tom med multibytekoding" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Ingen standardfont spesifisert for multibyteutskrift" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Kan ikke pne Postscript-fil for skriving" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Kan ikke pne filen \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Fant ikke Postscript-ressursfilen \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Fant ikke Postscript-ressursfilen \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Fant ikke Postscript-ressursfilen \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Klarte ikke konvertere til utskriftskoding \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Sender til skriver..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Feil under utskrift av Postscript-fil" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Skriverjobb sendt." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Legg til en ny database" diff --git a/src/nvim/po/pl.UTF-8.po b/src/nvim/po/pl.UTF-8.po index 7e978113f6..c00130ac8c 100644 --- a/src/nvim/po/pl.UTF-8.po +++ b/src/nvim/po/pl.UTF-8.po @@ -2954,126 +2954,6 @@ msgstr "szukanie dobiło GÓRY; kontynuacja od KOŃCA" msgid "search hit BOTTOM, continuing at TOP" msgstr "szukanie dobiło KOŃCA; kontynuacja od GÓRY" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Brak dwukropka" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Niedozwolona część" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: oczekiwałem na cyfrę" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Strona %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "Brak tekstu do drukowania" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Drukuję stronę %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Kopia %d z %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Wydrukowano: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Drukowanie odwołane" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Nie można zapisać do wyjściowego pliku PostScriptu" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Nie mogę otworzyć pliku \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Nie można odczytać pliku zasobów PostScriptu \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: plik \"%s\" nie jest plikiem zasobów PostScriptu" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: plik \"%s\" nie jest wspieranym plikiem zasobów PostScriptu" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" nieprawidłowa wersja pliku zasobów" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Niekompatybilne kodowanie wielobajtowe i zestaw znaków." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset nie może być pusty przy kodowaniu wielobajtowym." - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Nie określono domyślnej czcionki dla drukowania wielobajtowego." - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Nie można otworzyć pliku PostScript do wyjścia" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Nie mogę otworzyć pliku \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Nie można znaleźć pliku zasobów PostScriptu \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Nie można znaleźć pliku zasobów PostScriptu \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Nie można znaleźć pliku zasobów PostScriptu \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Nie można przekonwertować by drukować kodowanie \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Przesyłam do drukarki..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Drukowanie pliku PostScript nie powiodło się" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Zadanie drukowanie przesłane." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Dodaj nową bazę danych" diff --git a/src/nvim/po/pt_BR.po b/src/nvim/po/pt_BR.po index bfd64b4d28..ca5a4508c7 100644 --- a/src/nvim/po/pt_BR.po +++ b/src/nvim/po/pt_BR.po @@ -4417,129 +4417,6 @@ msgstr "E663: No final da lista de modificaes" msgid "Type :quit<Enter> to exit Nvim" msgstr "Digite :quit<Enter> para sair do Vim" -#: ../hardcopy.c:296 -msgid "E550: Missing colon" -msgstr "E550: Dois-pontos faltando" - -#: ../hardcopy.c:308 -msgid "E551: Illegal component" -msgstr "E551: Elemento invlido" - -#: ../hardcopy.c:315 -msgid "E552: digit expected" -msgstr "E552: era esperado um algarismo" - -#: ../hardcopy.c:529 -#, c-format -msgid "Page %d" -msgstr "Pgina %d" - -#: ../hardcopy.c:653 -msgid "No text to be printed" -msgstr "Sem texto para imprimir" - -#: ../hardcopy.c:724 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Imprimindo pgina %d (%d%%)" - -#: ../hardcopy.c:736 -#, c-format -msgid " Copy %d of %d" -msgstr " Cpia %d de %d" - -#: ../hardcopy.c:789 -#, c-format -msgid "Printed: %s" -msgstr "Impresso: %s" - -#: ../hardcopy.c:796 -msgid "Printing aborted" -msgstr "Impresso cancelada" - -#: ../hardcopy.c:1307 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Erro ao escrever no arquivo PostScript" - -#: ../hardcopy.c:1679 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Impossvel abrir arquivo \"%s\"" - -#: ../hardcopy.c:1688 ../hardcopy.c:2402 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Impossvel ler o arquivo de recursos de PostScript \"%s\"" - -#: ../hardcopy.c:1704 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: arquivo \"%s\" no um arquivo de recursos de PostScript" - -#: ../hardcopy.c:1720 ../hardcopy.c:1737 ../hardcopy.c:1776 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "" -"E619: arquivo \"%s\" no um arquivo de recursos de PostScript suportado" - -#: ../hardcopy.c:1788 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: verso errada do arquivo de recursos \"%s\"" - -#: ../hardcopy.c:2157 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "" -"E673: Codificao multi-byte incompatvel com o conjunto de caracteres." - -#: ../hardcopy.c:2170 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: 'printmbcharset' no pode estar vazio com codificaes multi-byte." - -#: ../hardcopy.c:2186 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Nenhuma fonte padro especificada para impresso em multi-byte." - -#: ../hardcopy.c:2358 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Impossvel abrir arquivo PostScript para sada" - -#: ../hardcopy.c:2390 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Impossvel abrir arquivo \"%s\"" - -#: ../hardcopy.c:2515 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Arquivo de recursos de PostScript \"prolog.ps\" no encontrado" - -#: ../hardcopy.c:2525 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Arquivo de recursos de PostScript \"cidfont.ps\" no encontrado" - -#: ../hardcopy.c:2554 ../hardcopy.c:2571 ../hardcopy.c:2597 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Arquivo de recursos de PostScript \"%s.ps\" no encontrado" - -#: ../hardcopy.c:2586 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Impossvel converter para a codificao \"%s\" para impresso" - -#: ../hardcopy.c:2809 -msgid "Sending to printer..." -msgstr "Enviando impressora..." - -#: ../hardcopy.c:2813 -msgid "E365: Failed to print PostScript file" -msgstr "E365: No foi possvel imprimir o arquivo PostScript" - -#: ../hardcopy.c:2815 -msgid "Print job sent." -msgstr "Trabalho de impresso enviado." - #. This happens when the FileChangedRO autocommand changes the #. * file in a way it becomes shorter. #: ../undo.c:355 diff --git a/src/nvim/po/ru.po b/src/nvim/po/ru.po index da356770d7..1235111c58 100644 --- a/src/nvim/po/ru.po +++ b/src/nvim/po/ru.po @@ -2979,126 +2979,6 @@ msgstr "Поиск будет продолжен с КОНЦА документ msgid "search hit BOTTOM, continuing at TOP" msgstr "Поиск будет продолжен с НАЧАЛА документа" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Пропущено двоеточие" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Недопустимый компонент" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: Требуется указать цифру" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Страница %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "Печатать нечего" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Печать стр. %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Копия %d из %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Напечатано: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Печать прекращена" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Ошибка записи в файл PostScript" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Невозможно открыть файл \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Невозможно прочитать файл ресурсов PostScript \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: Файл \"%s\" не является файлом ресурсов PostScript" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: Файл \"%s\" не является допустимым файлом ресурсов PostScript" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: Файл ресурсов \"%s\" неизвестной версии" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Несовместимые многобайтовая кодировка и набор символов." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset не может быть пустым при многобайтовой кодировке." - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Нет определения шрифта по умолчанию для многобайтовой печати." - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Невозможно открыть файл PostScript" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Невозможно открыть файл \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Файл ресурсов PostScript \"prolog.ps\" не найден" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Файл ресурсов PostScript \"cidfont.ps\" не найден" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Файл ресурсов PostScript \"%s.ps\" не найден" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Невозможно преобразовать в кодировку печать \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Отправка на печать..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Не удалось выполнить печать файла PostScript" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Задание на печать отправлено." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Добавить новую базу данных" diff --git a/src/nvim/po/sk.cp1250.po b/src/nvim/po/sk.cp1250.po index cb8b8c6abb..f0fdc47a1e 100644 --- a/src/nvim/po/sk.cp1250.po +++ b/src/nvim/po/sk.cp1250.po @@ -2994,127 +2994,6 @@ msgstr "hadanie dosiahlo zaiatok, pokraovanie od konca" msgid "search hit BOTTOM, continuing at TOP" msgstr "hadanie dosiahlo koniec, pokraovanie od zaiatku" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Chba dvojbodka" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Neprpustn komponent" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: oakvan slica" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Strana %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "iadny text na tla" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Tlam stranu %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Kpia %d z %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Vytlaen: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Tla bola zruen" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Ned sa zapisova do vstupnho PostScriptovho sboru" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Ned sa otvori sbor \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Ned sa ta PostScriptov sbor \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: sbor \"%s\" nie je vo formte PostScript" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: sbor \"%s\" nie je podporvan PostScriptov sbor" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" zdrojov sbor m zl slo verzie" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: nekompatibiln viacbajtov kdovanie a znakov sada." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: voba printmbcharset neme by przdna pri viacbajtovom kdovan." - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Nie je pecifikovan iadne psmo pre viacbajtov tlaenie." - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Ned sa otvori vstupn PostScriptov sbor" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Ned sa otvori sbor \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Nemono njs PostScriptov zdrojov sbor \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Nemono njs PostScriptov zdrojov sbor \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Nemono njs PostScriptov zdrojov sbor \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Nemono skonvertova do kdovania na tlaenie \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Posielam na tlaiare..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: PostScriptov sbor sa nepodarilo vytlai" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Tlaov loha bola odoslan." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Prida nov databzu" diff --git a/src/nvim/po/sk.po b/src/nvim/po/sk.po index 4f9e1fe185..2d6b4ed901 100644 --- a/src/nvim/po/sk.po +++ b/src/nvim/po/sk.po @@ -2994,127 +2994,6 @@ msgstr "hadanie dosiahlo zaiatok, pokraovanie od konca" msgid "search hit BOTTOM, continuing at TOP" msgstr "hadanie dosiahlo koniec, pokraovanie od zaiatku" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Chba dvojbodka" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Neprpustn komponent" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: oakvan slica" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Strana %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "iadny text na tla" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Tlam stranu %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Kpia %d z %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Vytlaen: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "Tla bola zruen" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Ned sa zapisova do vstupnho PostScriptovho sboru" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Ned sa otvori sbor \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Ned sa ta PostScriptov sbor \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: sbor \"%s\" nie je vo formte PostScript" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: sbor \"%s\" nie je podporvan PostScriptov sbor" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" zdrojov sbor m zl slo verzie" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: nekompatibiln viacbajtov kdovanie a znakov sada." - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: voba printmbcharset neme by przdna pri viacbajtovom kdovan." - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Nie je pecifikovan iadne psmo pre viacbajtov tlaenie." - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Ned sa otvori vstupn PostScriptov sbor" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Ned sa otvori sbor \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Nemono njs PostScriptov zdrojov sbor \"prolog.ps\"" - -#: ../hardcopy.c:2593 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Nemono njs PostScriptov zdrojov sbor \"cidfont.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Nemono njs PostScriptov zdrojov sbor \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Nemono skonvertova do kdovania na tlaenie \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Posielam na tlaiare..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: PostScriptov sbor sa nepodarilo vytlai" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Tlaov loha bola odoslan." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Prida nov databzu" diff --git a/src/nvim/po/sr.po b/src/nvim/po/sr.po index cbdf736d0f..4a9dcf4a5d 100644 --- a/src/nvim/po/sr.po +++ b/src/nvim/po/sr.po @@ -2573,100 +2573,6 @@ msgstr "Стил:" msgid "Size:" msgstr "Величина:" -msgid "E550: Missing colon" -msgstr "E550: Недостаје двотачка" - -msgid "E551: Illegal component" -msgstr "E551: Неисправна компонента" - -msgid "E552: digit expected" -msgstr "E552: очекује се цифра" - -#, c-format -msgid "Page %d" -msgstr "Страна %d" - -msgid "No text to be printed" -msgstr "Нема текста за штампу" - -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Штампање стране %d (%d%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Копија %d од %d" - -#, c-format -msgid "Printed: %s" -msgstr "Одштампано: %s" - -msgid "Printing aborted" -msgstr "Штампање прекинуто" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Грешка приликом уписа у PostScript излазну датотеку" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Датотека \"%s\" не може да се отвори" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: PostScript resource датотека \"%s\" не може да се чита" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: датотека \"%s\" није PostScript resource датотека" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: датотека \"%s\" није подржана PostScript resource датотека" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" resource датотека је погрешне верзије" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Вишебајтно кодирање и скуп карактера нису компатибилни." - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset не може бити празно са вишебајтним кодирањем." - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Није наведен подразумевани фонт за вишебајтно штампање." - -msgid "E324: Can't open PostScript output file" -msgstr "E324: PostScript излазна датотека не може да се отвори" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Датотека \"%s\" не може да се отвори" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: PostScript resource датотека \"prolog.ps\" не може да се пронађе" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "" -"E456: PostScript resource датотека \"cidfont.ps\" не може да се пронађе" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: PostScript resource датотека \"%s.ps\" не може да се пронађе" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Није могућа конверзија у кодирање за штампу \"%s\"" - -msgid "Sending to printer..." -msgstr "Слање штампачу..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: PostScript датотека није успела да се одштампа" - -msgid "Print job sent." -msgstr "Задатак штампе је послат" - msgid "Add a new database" msgstr "Додај нову базу" diff --git a/src/nvim/po/sv.po b/src/nvim/po/sv.po index 406900f7b2..e46579c067 100644 --- a/src/nvim/po/sv.po +++ b/src/nvim/po/sv.po @@ -4168,126 +4168,6 @@ msgstr "E782: fel vid lsning av .sug-fil: %s" msgid "E783: duplicate char in MAP entry" msgstr "E783: dubblerat tecken i MAP-post" -#: ../hardcopy.c:296 -msgid "E550: Missing colon" -msgstr "E550: Kolon saknas" - -#: ../hardcopy.c:308 -msgid "E551: Illegal component" -msgstr "E551: Otillten komponent" - -#: ../hardcopy.c:315 -msgid "E552: digit expected" -msgstr "E552: siffra frvntades" - -#: ../hardcopy.c:529 -#, c-format -msgid "Page %d" -msgstr "Sida %d" - -#: ../hardcopy.c:653 -msgid "No text to be printed" -msgstr "Ingen text att skriva ut" - -#: ../hardcopy.c:724 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "Skriver ut sida %d (%d%%)" - -#: ../hardcopy.c:736 -#, c-format -msgid " Copy %d of %d" -msgstr " Kopia %d av %d" - -#: ../hardcopy.c:789 -#, c-format -msgid "Printed: %s" -msgstr "Skrev ut: %s" - -#: ../hardcopy.c:796 -msgid "Printing aborted" -msgstr "Utskrift avbruten" - -#: ../hardcopy.c:1307 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Fel vid skrivning av utdata till PostScript-fil" - -#: ../hardcopy.c:1679 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Kan inte ppna fil \"%s\"" - -#: ../hardcopy.c:1688 ../hardcopy.c:2401 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Kan inte lsa PostScript-resursfil \"%s\"" - -#: ../hardcopy.c:1704 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: fil \"%s\" r inte en PostScript-resursfil" - -#: ../hardcopy.c:1720 ../hardcopy.c:1737 ../hardcopy.c:1776 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: fil \"%s\" r inte en PostScript-resursfil som stds" - -#: ../hardcopy.c:1788 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\"-kllfilen har fel version" - -#: ../hardcopy.c:2157 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Inkompatibel flerbitskodning och teckenuppsttning." - -#: ../hardcopy.c:2169 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset kan inte vara tom med flerbitskodning." - -#: ../hardcopy.c:2185 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Ingen standardfont angiven fr flerbitsutskrifter." - -#: ../hardcopy.c:2357 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Kan inte ppna PostScript-utfil" - -#: ../hardcopy.c:2389 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Kan inte ppna fil \"%s\"" - -#: ../hardcopy.c:2514 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Kan inte hitta PostScript-kllfilen \"prolog.ps\"" - -#: ../hardcopy.c:2524 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Kan inte hitta PostScript-kllfilen \"cidfont.ps\"" - -#: ../hardcopy.c:2553 ../hardcopy.c:2570 ../hardcopy.c:2596 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Kan inte hitta PostScript-kllfilen \"%s.ps\"" - -#: ../hardcopy.c:2585 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Kunde inte konvertera frn utskriftkodning \"%s\"" - -#: ../hardcopy.c:2808 -msgid "Sending to printer..." -msgstr "Skickar till skrivare..." - -#: ../hardcopy.c:2812 -msgid "E365: Failed to print PostScript file" -msgstr "E365: Misslyckades med att skriva ut PostScript-fil" - -#: ../hardcopy.c:2814 -msgid "Print job sent." -msgstr "Skrivarjobb skickat." - #: ../mark.c:673 msgid "No marks set" msgstr "Inga mrken satta" diff --git a/src/nvim/po/tr.po b/src/nvim/po/tr.po index 0cf91fa4d5..7d6af4d2cf 100644 --- a/src/nvim/po/tr.po +++ b/src/nvim/po/tr.po @@ -2625,99 +2625,6 @@ msgstr "Arama dosyanın SONUNU geçti, dosyanın BAŞINDAN sürüyor" msgid " line " msgstr " satır " -msgid "E550: Missing colon" -msgstr "E550: İki nokta eksik" - -msgid "E551: Illegal component" -msgstr "E551: Geçersiz bileşen" - -msgid "E552: digit expected" -msgstr "E552: Basamak bekleniyordu" - -#, c-format -msgid "Page %d" -msgstr "Sayfa %d" - -msgid "No text to be printed" -msgstr "Yazdırılacak metin yok" - -#, c-format -msgid "Printing page %d (%zu%%)" -msgstr "Sayfa %d yazdırılıyor (%%%zu)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Kopya %d/%d" - -#, c-format -msgid "Printed: %s" -msgstr "Yazdırıldı: %s" - -msgid "Printing aborted" -msgstr "Yazdırma durduruldu" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: PostScript çıktı dosyasına yazarken hata" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: \"%s\" dosyası açılamıyor" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: PostScript özkaynak dosyası \"%s\" okunamıyor" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: \"%s\" dosyası bir PostScript özkaynak dosyası değil" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: \"%s\" dosyası desteklenen bir PostScript özkaynak dosyası değil" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" özkaynak dosyası sürümü hatalı" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Uyumsuz çoklu bayt kodlaması ve karakter kümesi." - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset çoklu bayt kodlamada boş olamaz." - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Çoklu bayt yazdırma için öntanımlı yazıtipi ayarlanmamış." - -msgid "E324: Can't open PostScript output file" -msgstr "E324: PostScript çıktı dosyası açılamıyor" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: \"%s\" dosyası açılamıyor" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: PostScript özkaynak dosyası \"prolog.ps\" bulunamıyor" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: PostScript özkaynak dosyası \"cidfont.ps\" bulunamıyor" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: PostScript özkaynak dosyası \"%s.ps\" bulunamıyor" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: \"%s\" yazdırma kodlamasına dönüştürülemiyor" - -msgid "Sending to printer..." -msgstr "Yazıcıya gönderiliyor..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: PostScript dosyası yazdırılamadı" - -msgid "Print job sent." -msgstr "Yazdırma işi gönderildi." - msgid "E478: Don't panic!" msgstr "E478: Panik yok!" diff --git a/src/nvim/po/uk.po b/src/nvim/po/uk.po index 427abd9b77..b521e37177 100644 --- a/src/nvim/po/uk.po +++ b/src/nvim/po/uk.po @@ -2913,99 +2913,6 @@ msgstr "Пошук дійшов до КІНЦЯ, продовжується з msgid " line " msgstr " рядок " -msgid "E550: Missing colon" -msgstr "E550: Пропущено двокрапку" - -msgid "E551: Illegal component" -msgstr "E551: Некоректний компонент" - -msgid "E552: digit expected" -msgstr "E552: очікується цифра" - -#, c-format -msgid "Page %d" -msgstr "Сторінка %d" - -msgid "No text to be printed" -msgstr "Нічого друкувати" - -#, c-format -msgid "Printing page %d (%zu%%)" -msgstr "Друкується сторінка %d (%zu%%)" - -#, c-format -msgid " Copy %d of %d" -msgstr " Копія %d з %d" - -#, c-format -msgid "Printed: %s" -msgstr "Надруковано: %s" - -msgid "Printing aborted" -msgstr "Друк перервано" - -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Не вдалося записати вихідний файл PostScript" - -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Не вдалося відкрити файл «%s»" - -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Не вдалося прочитати файл ресурсів PostScript «%s»" - -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: «%s» не є файлом ресурсів PostScript" - -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: «%s» не є підтримуваним файлом ресурсів PostScript" - -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: Неправильна версія файлу ресурсів «%s»" - -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: Несумісні багатобайтове кодування й набір символів." - -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" -"E674: printmbcharset не може бути порожнім з багатобайтовим кодуванням." - -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: Не зазначено шрифт для багатобайтового друку." - -msgid "E324: Can't open PostScript output file" -msgstr "E324: Не вдалося відкрити файл PostScript для виводу" - -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Не вдалося відкрити файл «%s»" - -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Не вдалося знайти файл ресурсів PostScript «prolog.ps»" - -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Не вдалося знайти файл ресурсів PostScript «cidfont.ps»" - -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Не вдалося знайти файл ресурсів PostScript «%s.ps»" - -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Не вдалося перетворити до кодування друку «%s»" - -msgid "Sending to printer..." -msgstr "Відсилається на принтер..." - -msgid "E365: Failed to print PostScript file" -msgstr "E365: Не вдалося надрукувати файл PostScript" - -msgid "Print job sent." -msgstr "Завдання друку відіслано." msgid "E424: Too many different highlighting attributes in use" msgstr "E424: Використано забагато різних атрибутів кольору" diff --git a/src/nvim/po/vi.po b/src/nvim/po/vi.po index ad59718a30..44772c99ad 100644 --- a/src/nvim/po/vi.po +++ b/src/nvim/po/vi.po @@ -3020,127 +3020,6 @@ msgstr "tìm kiếm sẽ được tiếp tục từ CUỐI tài liệu" msgid "search hit BOTTOM, continuing at TOP" msgstr "tìm kiếm sẽ được tiếp tục từ ĐẦU tài liệu" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: Thiếu dấu hai chấm" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: Thành phần không cho phép" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: Cần chỉ ra một số" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "Trang %d" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "Không có gì để in" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "In trang %d (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr " Sao chép %d của %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "Đã in: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "In bị dừng" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: Lỗi ghi nhớ vào tập tin PostScript" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: Không thể mở tập tin \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: Không thể đọc tập tin tài nguyên PostScript \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: \"%s\" không phải là tập tin tài nguyên PostScript" - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: \"%s\" không phải là tập tin tài nguyên PostScript được hỗ trợ" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: tập tin tài nguyên \"%s\" có phiên bản không đúng" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: Không thể mở tập tin PostScript" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: Không thể mở tập tin \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: Không tìm thấy tập tin tài nguyên PostScript \"prolog.ps\"" - -#: ../hardcopy.c:2593 -#, fuzzy -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: Không tìm thấy tập tin tài nguyên PostScript \"%s.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: Không tìm thấy tập tin tài nguyên PostScript \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, fuzzy, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: Không thể chuyển từ các ký tự nhiều byte thành bảng mã \"%s\"" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "Gửi tới máy in..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: In tập tin PostScript không thành công" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "Đã gửi công việc in." - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "Thêm một cơ sở dữ liệu mới" diff --git a/src/nvim/po/zh_CN.UTF-8.po b/src/nvim/po/zh_CN.UTF-8.po index 87b67c5d97..0606adcc37 100644 --- a/src/nvim/po/zh_CN.UTF-8.po +++ b/src/nvim/po/zh_CN.UTF-8.po @@ -3533,126 +3533,6 @@ msgstr "已查找到文件结尾,再从开头继续查找" msgid " line " msgstr " 行 " -#: ../hardcopy.c:309 -msgid "E550: Missing colon" -msgstr "E550: 缺少冒号" - -#: ../hardcopy.c:326 -msgid "E551: Illegal component" -msgstr "E551: 无效的部分" - -#: ../hardcopy.c:335 -msgid "E552: digit expected" -msgstr "E552: 应该要有数字" - -#: ../hardcopy.c:561 -#, c-format -msgid "Page %d" -msgstr "第 %d 页" - -#: ../hardcopy.c:679 -msgid "No text to be printed" -msgstr "没有要打印的文字" - -#: ../hardcopy.c:744 -#, c-format -msgid "Printing page %d (%zu%%)" -msgstr "正在打印第 %d 页 (%zu%%)" - -#: ../hardcopy.c:753 -#, c-format -msgid " Copy %d of %d" -msgstr " 副本 %d / %d" - -#: ../hardcopy.c:808 -#, c-format -msgid "Printed: %s" -msgstr "已打印: %s" - -#: ../hardcopy.c:815 -msgid "Printing aborted" -msgstr "打印中止" - -#: ../hardcopy.c:1284 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: 写入 PostScript 输出文件出错" - -#: ../hardcopy.c:1642 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: 无法打开文件 \"%s\"" - -#: ../hardcopy.c:1651 ../hardcopy.c:2372 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: 无法读取 PostScript 资源文件 \"%s\"" - -#: ../hardcopy.c:1667 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: 文件 \"%s\" 不是 PostScript 资源文件" - -#: ../hardcopy.c:1684 ../hardcopy.c:1701 ../hardcopy.c:1742 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: 文件 \"%s\" 不是已支持的 PostScript 资源文件" - -#: ../hardcopy.c:1755 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" 资源文件版本不正确" - -#: ../hardcopy.c:2128 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: 不兼容的多字节编码和字符集。" - -#: ../hardcopy.c:2140 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset 在多字节编码下不能为空" - -#: ../hardcopy.c:2156 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: 没有指定多字节打印的默认字体" - -#: ../hardcopy.c:2319 -msgid "E324: Can't open PostScript output file" -msgstr "E324: 无法打开 PostScript 输出文件" - -#: ../hardcopy.c:2352 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: 无法打开文件 \"%s\"" - -#: ../hardcopy.c:2476 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: 找不到 PostScript 资源文件 \"prolog.ps\"" - -#: ../hardcopy.c:2488 -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: 找不到 PostScript 资源文件 \"cidfont.ps\"" - -#: ../hardcopy.c:2518 ../hardcopy.c:2537 ../hardcopy.c:2563 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: 找不到 PostScript 资源文件 \"%s.ps\"" - -#: ../hardcopy.c:2553 -#, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620: 无法转换至打印编码 \"%s\"" - -#: ../hardcopy.c:2773 -msgid "Sending to printer..." -msgstr "发送到打印机……" - -#: ../hardcopy.c:2778 -msgid "E365: Failed to print PostScript file" -msgstr "E365: 无法打印 PostScript 文件" - -#: ../hardcopy.c:2780 -msgid "Print job sent." -msgstr "打印任务已被发送。" - #: ../help.c:79 msgid "E478: Don't panic!" msgstr "E478: 不要慌!" @@ -8328,38 +8208,6 @@ msgstr "在气泡求值中显示的表达式" msgid "printing" msgstr "打印" -#: ../../../runtime/optwin.vim:632 -msgid "list of items that control the format of :hardcopy output" -msgstr "控制 :hardcopy 输出格式的项目列表" - -#: ../../../runtime/optwin.vim:634 -msgid "name of the printer to be used for :hardcopy" -msgstr "用于 :hardcopy 的打印机名称" - -#: ../../../runtime/optwin.vim:637 -msgid "expression used to print the PostScript file for :hardcopy" -msgstr "用于 :hardcopy 打印 PostScript 文件的表达式" - -#: ../../../runtime/optwin.vim:640 -msgid "name of the font to be used for :hardcopy" -msgstr ":hardcopy 使用的字体名称" - -#: ../../../runtime/optwin.vim:642 -msgid "format of the header used for :hardcopy" -msgstr "用于 :hardcopy 的标头格式" - -#: ../../../runtime/optwin.vim:645 -msgid "encoding used to print the PostScript file for :hardcopy" -msgstr "用于 :hardcopy 打印 PostScript 文件的编码" - -#: ../../../runtime/optwin.vim:648 -msgid "the CJK character set to be used for CJK output from :hardcopy" -msgstr ":hardcopy 用于 CJK 输出的 CJK 字符集" - -#: ../../../runtime/optwin.vim:650 -msgid "list of font names to be used for CJK output from :hardcopy" -msgstr ":hardcopy 用于 CJK 输出的字体名称列表" - #: ../../../runtime/optwin.vim:654 msgid "messages and info" msgstr "消息和信息" diff --git a/src/nvim/po/zh_TW.UTF-8.po b/src/nvim/po/zh_TW.UTF-8.po index e95b1e2cad..cba95e2af2 100644 --- a/src/nvim/po/zh_TW.UTF-8.po +++ b/src/nvim/po/zh_TW.UTF-8.po @@ -3024,127 +3024,6 @@ msgstr "已搜尋到檔案開頭;再從結尾繼續搜尋" msgid "search hit BOTTOM, continuing at TOP" msgstr "已搜尋到檔案結尾;再從開頭繼續搜尋" -#: ../hardcopy.c:240 -msgid "E550: Missing colon" -msgstr "E550: 缺少 colon" - -#: ../hardcopy.c:252 -msgid "E551: Illegal component" -msgstr "E551: 不正確的模式" - -#: ../hardcopy.c:259 -msgid "E552: digit expected" -msgstr "E552: 應該要有數字" - -#: ../hardcopy.c:473 -#, c-format -msgid "Page %d" -msgstr "第 %d 頁" - -#: ../hardcopy.c:597 -msgid "No text to be printed" -msgstr "沒有要列印的文字" - -#: ../hardcopy.c:668 -#, c-format -msgid "Printing page %d (%d%%)" -msgstr "列印中: 第 %d 頁 (%d%%)" - -#: ../hardcopy.c:680 -#, c-format -msgid " Copy %d of %d" -msgstr "複製 %d / %d" - -#: ../hardcopy.c:733 -#, c-format -msgid "Printed: %s" -msgstr "已列印: %s" - -#: ../hardcopy.c:740 -msgid "Printing aborted" -msgstr "已取消列印" - -#: ../hardcopy.c:1365 -msgid "E455: Error writing to PostScript output file" -msgstr "E455: 無法寫入 PostScript 輸出檔" - -#: ../hardcopy.c:1747 -#, c-format -msgid "E624: Can't open file \"%s\"" -msgstr "E624: 無法開啟檔案 \"%s\"" - -#: ../hardcopy.c:1756 ../hardcopy.c:2470 -#, c-format -msgid "E457: Can't read PostScript resource file \"%s\"" -msgstr "E457: 無法讀取 PostScript 資源檔 \"%s\"" - -#: ../hardcopy.c:1772 -#, c-format -msgid "E618: file \"%s\" is not a PostScript resource file" -msgstr "E618: 檔案 \"%s\" 不是 PostScript 資源檔 " - -#: ../hardcopy.c:1788 ../hardcopy.c:1805 ../hardcopy.c:1844 -#, c-format -msgid "E619: file \"%s\" is not a supported PostScript resource file" -msgstr "E619: 不支援 PostScript 資源檔 \"%s\"" - -#: ../hardcopy.c:1856 -#, c-format -msgid "E621: \"%s\" resource file has wrong version" -msgstr "E621: \"%s\" 資源檔版本錯誤" - -#: ../hardcopy.c:2225 -msgid "E673: Incompatible multi-byte encoding and character set." -msgstr "E673: 不兼容的多字節編碼和字元集" - -#: ../hardcopy.c:2238 -msgid "E674: printmbcharset cannot be empty with multi-byte encoding." -msgstr "E674: printmbcharset 在多字節編碼下不能為空" - -#: ../hardcopy.c:2254 -msgid "E675: No default font specified for multi-byte printing." -msgstr "E675: 沒有指定多字節打印的默認字型" - -#: ../hardcopy.c:2426 -msgid "E324: Can't open PostScript output file" -msgstr "E324: 無法開啟 PostScript 輸出檔" - -#: ../hardcopy.c:2458 -#, c-format -msgid "E456: Can't open file \"%s\"" -msgstr "E456: 無法開啟檔案 \"%s\"" - -#: ../hardcopy.c:2583 -msgid "E456: Can't find PostScript resource file \"prolog.ps\"" -msgstr "E456: 無法讀取 PostScript 資源檔 \"prolog.ps\"" - -#: ../hardcopy.c:2593 -#, fuzzy -msgid "E456: Can't find PostScript resource file \"cidfont.ps\"" -msgstr "E456: 無法讀取 PostScript 資源檔 \"%s.ps\"" - -#: ../hardcopy.c:2622 ../hardcopy.c:2639 ../hardcopy.c:2665 -#, c-format -msgid "E456: Can't find PostScript resource file \"%s.ps\"" -msgstr "E456: 無法讀取 PostScript 資源檔 \"%s.ps\"" - -#: ../hardcopy.c:2654 -#, fuzzy, c-format -msgid "E620: Unable to convert to print encoding \"%s\"" -msgstr "E620:無法轉換至 \"%s\" 字元編碼" - -#: ../hardcopy.c:2877 -msgid "Sending to printer..." -msgstr "傳送資料到印表機..." - -#: ../hardcopy.c:2881 -msgid "E365: Failed to print PostScript file" -msgstr "E365: 無法列印 PostScript 檔案" - -#: ../hardcopy.c:2883 -msgid "Print job sent." -msgstr "已送出列印工作。" - #: ../if_cscope.c:85 msgid "Add a new database" msgstr "新增資料庫" diff --git a/src/nvim/statusline.c b/src/nvim/statusline.c index 4b1748cfae..072b58e08e 100644 --- a/src/nvim/statusline.c +++ b/src/nvim/statusline.c @@ -1533,7 +1533,7 @@ int build_stl_str_hl(win_T *wp, char *out, size_t outlen, char *fmt, char *opt_n } break; case STL_PAGENUM: - num = printer_page_num; + num = 0; break; case STL_BUFNO: diff --git a/src/nvim/testdir/test_hardcopy.vim b/src/nvim/testdir/test_hardcopy.vim deleted file mode 100644 index be83728b4f..0000000000 --- a/src/nvim/testdir/test_hardcopy.vim +++ /dev/null @@ -1,212 +0,0 @@ -" Test :hardcopy - -source check.vim - -func Test_printoptions() - edit test_hardcopy.vim - syn on - - for opt in ['left:5in,right:10pt,top:8mm,bottom:2pc', - \ 'left:2in,top:30pt,right:16mm,bottom:3pc', - \ 'header:3,syntax:y,number:y,wrap:n', - \ 'header:3,syntax:n,number:y,wrap:y', - \ 'header:0,syntax:a,number:y,wrap:y', - \ 'duplex:short,collate:n,jobsplit:y,portrait:n', - \ 'duplex:long,collate:y,jobsplit:n,portrait:y', - \ 'duplex:off,collate:y,jobsplit:y,portrait:y', - \ 'paper:10x14', - \ 'paper:A3', - \ 'paper:A4', - \ 'paper:A5', - \ 'paper:B4', - \ 'paper:B5', - \ 'paper:executive', - \ 'paper:folio', - \ 'paper:ledger', - \ 'paper:legal', - \ 'paper:letter', - \ 'paper:quarto', - \ 'paper:statement', - \ 'paper:tabloid', - \ 'formfeed:y', - \ ''] - exe 'set printoptions=' .. opt - if has('postscript') - 1,50hardcopy > Xhardcopy_printoptions - let lines = readfile('Xhardcopy_printoptions') - call assert_true(len(lines) > 20, opt) - call assert_true(lines[0] =~ 'PS-Adobe', opt) - call delete('Xhardcopy_printoptions') - endif - endfor - - call assert_fails('set printoptions=paper', 'E550:') - call assert_fails('set printoptions=shredder:on', 'E551:') - call assert_fails('set printoptions=left:no', 'E552:') - set printoptions& - bwipe -endfunc - -func Test_printmbfont() - " Print a help page which contains tabs, underlines (etc) to recover more code. - help syntax.txt - syn on - - for opt in [':WadaMin-Regular,b:WadaMin-Bold,i:WadaMin-Italic,o:WadaMin-Bold-Italic,c:yes,a:no', - \ ''] - exe 'set printmbfont=' .. opt - if has('postscript') - hardcopy > Xhardcopy_printmbfont - let lines = readfile('Xhardcopy_printmbfont') - call assert_true(len(lines) > 20, opt) - call assert_true(lines[0] =~ 'PS-Adobe', opt) - call delete('Xhardcopy_printmbfont') - endif - endfor - set printmbfont& - bwipe -endfunc - -func Test_printmbcharset() - CheckFeature postscript - - " digraph.txt has plenty of non-latin1 characters. - help digraph.txt - set printmbcharset=ISO10646 printencoding=utf-8 - for courier in ['yes', 'no'] - for ascii in ['yes', 'no'] - exe 'set printmbfont=r:WadaMin-Regular,b:WadaMin-Bold,i:WadaMin-Italic,o:WadaMin-BoldItalic' - \ .. ',c:' .. courier .. ',a:' .. ascii - hardcopy > Xhardcopy_printmbcharset - let lines = readfile('Xhardcopy_printmbcharset') - call assert_true(len(lines) > 20) - call assert_true(lines[0] =~ 'PS-Adobe') - endfor - endfor - - set printmbcharset=does-not-exist printencoding=utf-8 printmbfont=r:WadaMin-Regular - call assert_fails('hardcopy > Xhardcopy_printmbcharset', 'E456:') - - set printmbcharset=GB_2312-80 printencoding=utf-8 printmbfont=r:WadaMin-Regular - call assert_fails('hardcopy > Xhardcopy_printmbcharset', 'E673:') - - set printmbcharset=ISO10646 printencoding=utf-8 printmbfont= - call assert_fails('hardcopy > Xhardcopy_printmbcharset', 'E675:') - - call delete('Xhardcopy_printmbcharset') - set printmbcharset& printencoding& printmbfont& - bwipe -endfunc - -func Test_printexpr() - CheckFeature postscript - - " Not a very useful printexpr value, but enough to test - " hardcopy with 'printexpr'. - function PrintFile(fname) - call writefile(['Test printexpr: ' .. v:cmdarg], - \ 'Xhardcopy_printexpr') - call delete(a:fname) - return 0 - endfunc - set printexpr=PrintFile(v:fname_in) - - help help - hardcopy dummy args - call assert_equal(['Test printexpr: dummy args'], - \ readfile('Xhardcopy_printexpr')) - call delete('Xhardcopy_printexpr') - - " Function returns 1 to test print failure. - function PrintFails(fname) - call delete(a:fname) - return 1 - endfunc - set printexpr=PrintFails(v:fname_in) - call assert_fails('hardcopy', 'E365:') - - " Using a script-local function - func s:NewPrintExpr() - endfunc - set printexpr=s:NewPrintExpr() - call assert_equal(expand('<SID>') .. 'NewPrintExpr()', &printexpr) - set printexpr=<SID>NewPrintExpr() - call assert_equal(expand('<SID>') .. 'NewPrintExpr()', &printexpr) - - set printexpr& - bwipe -endfunc - -func Test_errors() - CheckFeature postscript - - edit test_hardcopy.vim - call assert_fails('hardcopy >', 'E324:') - bwipe -endfunc - -func Test_dark_background() - edit test_hardcopy.vim - syn on - - for bg in ['dark', 'light'] - exe 'set background=' .. bg - - if has('postscript') - hardcopy > Xhardcopy_dark_background - let lines = readfile('Xhardcopy_dark_background') - call assert_true(len(lines) > 20) - call assert_true(lines[0] =~ 'PS-Adobe') - call delete('Xhardcopy_dark_background') - endif - endfor - - set background& - bwipe -endfun - -func Test_empty_buffer() - CheckFeature postscript - - new - call assert_equal("\nNo text to be printed", execute('hardcopy')) - bwipe -endfunc - -func Test_printheader_parsing() - " Only test that this doesn't throw an error. - set printheader=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P - set printheader=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P - set printheader=%<%f%=\ [%1*%M%*%n%R%H]\ %-19(%3l,%02c%03V%)%O'%02b' - set printheader=...%r%{VarExists('b:gzflag','\ [GZ]')}%h... - set printheader= - set printheader& -endfunc - -func Test_fname_with_spaces() - CheckFeature postscript - - split t\ e\ s\ t.txt - call setline(1, ['just', 'some', 'text']) - hardcopy > %.ps - call assert_true(filereadable('t e s t.txt.ps')) - call delete('t e s t.txt.ps') - bwipe! -endfunc - -func Test_illegal_byte() - CheckFeature postscript - if &enc != 'utf-8' - return - endif - - new - " conversion of 0xff will fail, this used to cause a crash - call setline(1, "\xff") - hardcopy >Xpstest - - bwipe! - call delete('Xpstest') -endfunc - -" vim: shiftwidth=2 sts=2 expandtab |