minput_set_spot(3m17n) The m17n Library minput_set_spot(3m17n)NAME
minput_set_spot - Set the spot of the input context.
SYNOPSIS
void minput_set_spot (MInputContext * ic, int x, int y, int ascent, int descent, int fontsize, MText * mt, int pos)
DESCRIPTION
Set the spot of the input context. The minput_set_spot() function sets the spot of input context ic to coordinate (x, y ) with the height
specified by ascent and descent. The semantics of these values depends on the input method driver.
For instance, a driver designed to work in a CUI environment may use x and y as the column- and row numbers, and may ignore ascent and
descent. A driver designed to work in a window system may interpret x and y as the pixel offsets relative to the origin of the client
window, and may interpret ascent and descent as the ascent- and descent pixels of the line at (x. y ).
fontsize specifies the fontsize of preedit text in 1/10 point.
mt and pos are the M-text and the character position at the spot. mt may be NULL, in which case, the input method cannot get information
about the text around the spot.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 minput_set_spot(3m17n)
Check Out this Related Man Page
mdraw_default_line_break(3m17n) The m17n Library mdraw_default_line_break(3m17n)NAME
mdraw_default_line_break - Calculate a line breaking position.
SYNOPSIS
int mdraw_default_line_break (MText * mt, int pos, int from, int to, int line, int y)
DESCRIPTION
Calculate a line breaking position. The function mdraw_default_line_break() calculates a line breaking position based on the line number
line and the coordinate y, when a line is too long to fit within the width limit. pos is the position of the character next to the last
one that fits within the limit. from is the position of the first character of the line, and to is the position of the last character
displayed on the line if there were not width limit. line and y are reset to 0 when a line is broken by a newline character, and
incremented each time when a long line is broken because of the width limit.
RETURN VALUE
This function returns a character position to break the line.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 mdraw_default_line_break(3m17n)
I want to write text to a file, but i want it inserted at a specific spot in the file. How would this be best performed? I want to insert this text:
DAEMON_OPTIONS(`Name=NoMTA4, Family=inet, Addr=127.0.0.1')dnl
FEATURE(`no_default_msa')dnl
Inserted into this file below , anywhere before the... (1 Reply)
I'm not sure where this really fits in the Unix.com forums, but this seemed to be a good spot for it. If not, please let me know:
I've been trying to track down an issue that I've had for quite a while with reverse lookups. I've got a primary and secondary DNS that are authoritative for some... (8 Replies)
I've done this before but I can't remember how. Too long away from vi.
I want to do a search are replace, but I want the replace to be a join.
Example
see spot run
see spot walk
see spot run fast
see spot hop
%s/run$/<somehow perform a join with the next line>/g
so the results... (0 Replies)
Hello im new here and i shot stright with question.
Mainly i wanna ask , how do i search with regexp in one spot and show the whole thing, what im trying to ask is , for eg. i do ls -l, and i see all the info for the dirs and dats. now say i wanna get all the dats that in their name they start... (2 Replies)
Hello All,
Kindly need help in my problem i.e. I get this error when i create spot from mksysb.
#0042-001 nim: processing error encountered on "master":
0042-001 m_mkspot: processing error encountered on "master":
0042-175 c_mkspot: An unexpected result was returned by the... (2 Replies)
Hi there can anyone help me to spot my mistake and please explain why it appears
My code :
#!/usr/bin/gawk -f
BEGIN { bytes =0}
{ temp=$(grep "datafeed\.php" | cut -d" " -f8)
bytes += temp}
END { printf "Number of bytes: %d\n", bytes }
when I am running ./q411 an411
an411:
... (6 Replies)
Dear All,
I have a file like:
If $4=2001, a duplicated line will be inserted and $4 will be assigned value 2011; so that the new file would be:
How to write awk to accomplish this? thank you very much! (5 Replies)